NestedLink
NestedLink copied to clipboard
Callback-free React forms with painless validation.
When using valuelink on a dropdown with something like ``` this.linkRole = VLink.state(this, "role").onChange(this.onChangeRole); valueLink.set(option.key)} ``` the onChange function is called before this.state.role is set, giving a value which is...
Hi! Is there a way to not show errors at the first render of a component? ``` javascript render() { const nameLink = Link.state(this, 'name') nameLink.check(v => v, 'Name is...
For example: class Edit extends LinkedComponent { state = {} render() { return (
I use `import { Select } from "valuelink/tags";` and get this typescript error ``` Error:(5, 24) TS7016: Could not find a declaration file for module 'valuelink/tags'. '/home/---/node_modules/valuelink/tags.js' implicitly has an...
Hi there! I have a validation for a link that uses a different state property (not the one associated to the link I'm validating). When that external state property changes,...
*Steps to reproduce:* - set up an `Input` of `type="email"` (The code is basically the same as in issue #23, with the `FormInput` seperated into another component. You can see...
The pattern is to override `component.linkAll()`. - Call `linkAll` of the base class to produce the relevant links. - Add custom validation checks. - If needed, compute the `validationError` and...
Some React components have onHide/onChange/other functions which store the functions to the DOM (beyond our control, library components). Thus if we pass it something like: ``` class SomeComponent extends React.Component...
I'm using NestedLink with typescript. When I extend `LinkedComponent` and I want to use `links` member in `render` method, `links` is null.
> IE 9 does not fire an input event when the user deletes characters from an input (e.g. by pressing Backspace or Delete, or using the "Cut" operation) [https://developer.mozilla.org/en-US/docs/Web/Events/input#Browser_compatibility](url) So...