Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Use custom 2-way data binding for editing #5

Open
slorber opened this issue Jan 24, 2014 · 1 comment
Open

Use custom 2-way data binding for editing #5

slorber opened this issue Jan 24, 2014 · 1 comment

Comments

@slorber
Copy link
Contributor

slorber commented Jan 24, 2014

React has a way to synchronize the state with the inputs, without having to create many onChange functions on the inputs:
http://facebook.github.io/react/docs/two-way-binding-helpers.html

What they do not say is that it's easy to create your own Mixin to be able to bind the inputs to fields of the graph.

One could easily bind the input on a graph with a syntax like this:

<input type="text" valueLink={this.linkToPgLiteral('pgInState','foaf:name')} />
@letnotimitateothers
Copy link
Contributor

Nice! I then need to refactor my code to integrate this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants