Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
person = new Person01(firstName:'John', lastName:'Doo', gender:'Male', age:12, married:true)
.....
label('Firstname:')
text(text:bind(model:person, modelProperty:'firstName'), layoutData:'growx')
label('Age:')
text(text:bind(model:person, modelProperty:'age'), layoutData:'growx')
label('Married:')
button(style: 'CHECK', selection:bind(model:person, modelProperty:'married') )

...

The basic using a bind node:

Code Block
 text('', id:firstNameTextWidget)
 bind(target: firstNameTextWidget, targetProperty: 'text', model: person, modelProperty: 'firstName')

or the shortcut to avoid all the typing:

Code Block
 texttext(text:bind(model:person, modelProperty:'firstName'))

TODO: bailing out... Using IObservable objects for model....

Viewers

TODO: Binding viewers... input

TODO: Master-Detail...

ComputedValues

TODO: Binding with closures.

Threads


TODO: Realms, updating models in the realm,