Questions tagged [refs]

Resilient File System

The Resilient File System (ReFS) is Microsoft's newest file system, designed to maximize data availability, scale efficiently to large data sets across diverse workloads, and provide data integrity by means of resiliency to corruption. It seeks to address an expanding set of storage scenarios and establish a foundation for future innovations.

162 questions
1
vote
1 answer

getting innerHTML from a div after changes through contentEditable in React

thanks for taking the time to look at this. I am struggling to find out how to make this work specifically in react. I have used contentEditable to get the div element to be editable and then i have used Refs to make the div reference its innerHTML.…
Alexander Hemming
  • 753
  • 1
  • 6
  • 28
1
vote
0 answers

How to use refs React in internal component

I was using reference in my react 16 for integrating ChartJs but the problem that I am getting is the reference is working in APP.js, Routing.JS but not working in internal components... App.js componentDidMount(){ let…
Shrey Garg
  • 82
  • 9
1
vote
0 answers

How to position absolutely positioned element relative to ref position

I've got a bit of a problem here, hope I get help :0 well I am building a pretty little App on React and I have a navbar which includes an absolutely positioned div and two images for now... I have refs on these images and I want this navbar div to…
gurbajani
  • 121
  • 2
  • 10
1
vote
2 answers

Beginner question on Ocaml Refs

let x = ref 100 in let f () = !x in let x = ref 50 in ??? ; f () You are supposed to get the answer to be 50 by plugging something into the ??? (not shadowing). But I don't know how to change the value of your original ref now, considering x := 50…
Paul
  • 375
  • 1
  • 5
  • 17
1
vote
1 answer

React use refs on dynamic tab panel

I am using React, material-ui and material-table. I have a closable tab panel. And when I change tabs I do not unmount the corresponding panel component. I just hide it with css. Which means that when I use my material-table component inside…
Dito
  • 915
  • 2
  • 10
  • 26
1
vote
1 answer

Can't use $refs using variable name instead of direct value

I'm trying to call a child component's method from my parent component using $refs. It works if I do it the regular way: this.$refs.actualNameOfTheChildComponent.someMethod() But for my app's needs I have to use a variable name instead of the child…
drake035
  • 3,955
  • 41
  • 119
  • 229
1
vote
0 answers

.NET Core 2.2, publishing all DLLs to ref folder from AspNetCore.App package

I have recently migrated from .NET Core v1.1 to v2.2. Part of this migration included removing 8 or 9 Microsoft.AspNetCore nuget packages and replacing them with the almighty Microsoft.AspNetCore.App package. My understanding of using this was that…
Murphybro2
  • 2,207
  • 1
  • 22
  • 36
1
vote
1 answer

svn-remote.svn: remote ref 'xx' *:refs/remotes/svn/tags/*' (tags) must start with 'refs/'

Everytime I use this command: git svn clone xxxx/xxx --prefix=svn/ --branches=branches --tags=refs/tags --stdlayout xxx I'm getting this error: svn-remote.svn: remote ref 'xx' *:refs/remotes/svn/tags/*' (tags) must start with 'refs/'. How can I…
Lez
  • 11
  • 2
1
vote
3 answers

Focus on next Input field on Enter in Redux Form

I want to define a HOC(higher order Component) which will be responsible for handling the functionality. import React, { Component } from 'react'; const NextFieldOnEnter = WrappedContainer => class extends Component { componentDidMount() { …
Anita
  • 476
  • 3
  • 10
  • 24
1
vote
2 answers

Access a nested grand child component in a parent component

I need to access 'GreatGrandChild' component in the 'View' component. View Component: .... Child Component: .... GrandChild…
Sunny
  • 902
  • 3
  • 18
  • 41
1
vote
1 answer

Named Entity Annotation read 'in-context' as RDF?

I'm rather new to RDF, and have the basics nailed down, but I have a question about possible data sources (in addition to ontologies): is it possible to 'read' an (appropriately) Named Entity tag as an RDF subject-predicate-object(which would be the…
Josef M. Schomburg
  • 477
  • 1
  • 5
  • 11
1
vote
2 answers

how to use ref in multi-step registration in react es6?

I'm trying to develop multistep registration, referring this link : https://www.viget.com/articles/building-a-multi-step-registration-form-with-react But I could not use refs and don't know how to fix this. This is the error msg I get everytime I…
Soo Rhee
  • 19
  • 4
1
vote
1 answer

how to append two mutable lists in ocaml

type 'a mylist = 'a listcell ref and 'a listcell = Nil | Cons of 'a * ('a mylist) let l1 = (ref (Cons (1, ref (Cons (2,ref Nil))))) let l2 = (ref (Cons(3, ref (Cons(4, ref Nil))))) let rec append l1 l2 = match l1 with | {contents = Nil} -> (l1 :=…
nachos
  • 69
  • 5
1
vote
0 answers

In Vue.js $refs, how do I pass on the $refs reference value as a variable to a method using it?

I would like to do something like the following: addGreenClass(elHrefName) { var inputElement = document.getElementById(this.$refs.elHrefName.id); console.log(inputElement); } The variable 'elHrefName' in this case is just a passed on…
Simon Suh
  • 10,599
  • 25
  • 86
  • 110
1
vote
3 answers

I can't read attribut 'ref' of dom element in react

I can't read attribute ref after the form validation. The result is undefined and I don't understand why. import React from 'react'; import {Link} from 'react-router-dom'; export default class Home extends React.Component {. handleSubmit(e){ …
Nedjim DN
  • 543
  • 2
  • 6
  • 12