[Control] button

Part of: mobl::ui::generic

Arguments:

  • text : String the text to display on the button
  • style : Style = buttonStyle (optional) the style to use when the button is not pushed
  • pushedStyle : Style = buttonPushedStyle (optional) the style to use when the button is pushed
  • onclick : Callback = {} (optional) the event to be triggered when the button is tapped

Renders a button on the screen.

Example:

button("Click me", onclick={
  alert("You clicked me!");
})
mobl/ui/generic/button.txt · Last modified: 2013/10/01 02:29 (external edit)