Widget Type | #button |
Widget iOS class | MobileButton |
iOS category | IOSWidgets |
Widget Web class | ButtonWidget |
web category | WI8 |
Widget Android class | MobileImageButton |
Properties | height - defaultText - alignment - background- color - type - text - image - order |
Events | #needsText: - #clicked: |
Sample use in spec | (#incrementButton -> ( (#type -> #button ), (#configuration -> ( (#order -> 1 ), (#height -> 40), (#defaultText -> 'Initial text'), (#width -> 30), (#background -> 'gray'), (#color -> 'green'), (#listeners -> ( (#needsText -> [:coordinator | '+' ]), (#clicked: -> [:sender :coordinator | coordinator applicationModel increment. coordinator refresh: #counter. ]) )) )) )) |