[View] [Edit] [Lock] [References] [Attachments] [History] [Home] [Changes] [Search] [Help]
example[spec] Modify a property of a widget (through coordinator template) - this is a better way...
" select a task, start it, click on Comments "
" self is a MobilePageJSon instance "
| jsObject js coordinatorConf widgetsSpec widgetConf config |
jsObject := self template basicAt: #spec.
js := JS @ jsObject.
coordinatorConf := js @ #configuration.
widgetsSpec := JS @ coordinatorConf @ #widgets.
widgetConf := JS @ widgetsSpec @ #comment.
config := JS @ widgetConf @ #configuration.
JS @ config @ #height.
" modify #height property of MobileTextArea "
JS @ config handleAt: #height put: 100.
" refresh rendered UI "
self thread update