DojoMobileButton widget

A Dojo mobile button invokes an event handler in response to a user’s click.

Fields

text
The text that is displayed on the button.

Example

handler MyHandler type RUIhandler{initialUI =[button]}

   button DojoMobileButton{text = "Press this button", 
      width = "150", margin = 20, onClick ::= myClick};

   function start()
   end

   function myClick(e Event in)
      Syslib.writeStdout("Button clicked!");
      button.text = "Click button";
    end
end
Use of this widget requires the following statement:
import dojo.mobile.widgets.DojoMobileButton;