[Control] sideButton

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 to the right in the context of a group item.

Example:

group {
  list(t in Task.all()) {
    item {
      label(t.name)
      sideButton("Delete", onclick={
        remove(t);
      })
    }
  }
}
mobl/ui/generic/sidebutton.txt · Last modified: 2013/10/01 02:29 (external edit)