[ALOY-103] Model-View binding for discrete components
| GitHub Issue | n/a |
|---|---|
| Type | Story |
| Priority | High |
| Status | Resolved |
| Resolution | Fixed |
| Resolution Date | 2012-12-19T23:51:12.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Alloy 0.3.4, 2012 Sprint 26 |
| Components | Runtime, XML |
| Labels | GA-candidate, notable |
| Reporter | Russell McMahon |
| Assignee | Unknown |
| Created | 2012-07-17T11:24:38.000+0000 |
| Updated | 2018-03-07T22:26:10.000+0000 |
Description
We're working on model-view binding on controls like tableviews that rely on a collection, but it would be good to also allow single components to bind to a single model. In this way, changes to the state of a model can make changes to singular components like Labels, TextFields, Buttons, etc...
raw protoype
<Model src="myModel"/>
<Label text="{myModel.text}"/>
<TextField value="{myModel.someValue}"/>
Created models/binding_destroy test app to wrap up the initial incarnation of model/collection-view binding in Alloy. Additional work and documentation will be covered in new tickets.