[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

button

Widget Type #button
Widget iOS classMobileButton
iOS categoryIOSWidgets
Widget Web classButtonWidget
web categoryWI8
Widget Android classMobileImageButton
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. 
               		 ])
              
       			 )) 
       		)) 
  ))