|
2 | 2 | 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. |
3 | 3 |
|
4 | 4 | - 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) |
6 | 6 | - Transparent interoperation with Backbone Views: |
7 | 7 | - React component can be used as backbone View. `new MyComponent.View({ props })` |
8 | 8 | - 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. |
182 | 182 |
|
183 | 183 | ## Data binding |
184 | 184 |
|
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. |
188 | 186 |
|
| 187 | +Create link for object property of Model, Collection, and every object type created with Object.extend(): |
189 | 188 | `var link = object.getLink( 'attr' )` |
| 189 | +`var link = object.deepLink( 'path.to.the.attribute' )` |
190 | 190 |
|
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: |
192 | 192 | `var link = collection.hasLink( model )` |
193 | 193 |
|
194 | 194 | 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