Skip to content

Commit e050d83

Browse files
author
Vlad Balin
committed
Update README.md
1 parent 2b60a82 commit e050d83

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
This is React add-on providing advanced data binding and state management to React applications, as well as convergence layer for intermixing React components and Backbone Views.
33

44
- Advanced component's state management with [NestedTypes](https://github.com/Volicon/NestedTypes).
5-
- Comprehensive two-way data binding - [Guide to Data Binding Use Cases](/example/databinding.md)
5+
- Comprehensive two-way data binding and validation - [Guide to Data Binding Use Cases](/example/databinding.md)
66
- Transparent interoperation with Backbone Views:
77
- React component can be used as backbone View. `new MyComponent.View({ props })`
88
- Backbone Views can be used as React components. `<React.subview View={ MyView } />`
@@ -182,13 +182,13 @@ Event subscription is managed automatically. No props passed - no problems.
182182

183183
## Data binding
184184

185-
`nestedreact` supports data binding links compatible with standard React's `valueLink`.
186-
187-
Create link for object property of Model, Collection, and every object type created with Object.extend().
185+
`nestedreact` supports data binding links backwards compatible with standard React's `valueLink`. In addition to standard fields `value` and `requestChange`, links carries `error` field in case there was validation error in the model.
188186

187+
Create link for object property of Model, Collection, and every object type created with Object.extend():
189188
`var link = object.getLink( 'attr' )`
189+
`var link = object.deepLink( 'path.to.the.attribute' )`
190190

191-
Create boolean link, toggling model in collection. True if model is contained in collection, assignments will add/remove given model. Useful for checkboxes.
191+
Create boolean link, toggling model in collection. True if model is contained in collection, assignments will add/remove given model. Useful for checkboxes:
192192
`var link = collection.hasLink( model )`
193193

194194
Here's a brief reference for links API. Consult [Guide to Data Binding Use Cases](/example/databinding.md) to understand how to use it.

0 commit comments

Comments
 (0)