A Dojo mobile button invokes an event handler in response to a user’s click.
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
import dojo.mobile.widgets.DojoMobileButton;