Excerpt |
---|
The Renderer is capable of binding your data model to the rendered markup, so that any changes made by the user through the interface are reflected in the model. |
The association between the data model and the rendered markup is bi-directional: - at render time, the value of a component will be extracted from the model, and
- when the value of a bound DOM node changes, the change is applied to the model, either manually (for example, by calling
fluid.applyChange() ) or automatically (i.e. the Renderer updates the model for you, and fires a modelChanged event). (See the autoBind option below for more information.)
Using Data BindingTo take advantage of the Renderer data binding, you must: - use a data model
- construct the component tree to reference the data model, through the
valuebinding field
|