Titanium JIRA Archive
Alloy (ALOY)

[ALOY-103] Model-View binding for discrete components

GitHub Issuen/a
TypeStory
PriorityHigh
StatusResolved
ResolutionFixed
Resolution Date2012-12-19T23:51:12.000+0000
Affected Version/sn/a
Fix Version/sAlloy 0.3.4, 2012 Sprint 26
ComponentsRuntime, XML
LabelsGA-candidate, notable
ReporterRussell McMahon
AssigneeUnknown
Created2012-07-17T11:24:38.000+0000
Updated2018-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}"/>

Comments

  1. Tony Lukasavage 2012-12-19

    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.

JSON Source