[Control] sideButton
Part of: mobl::ui::generic
Arguments:
text : String
the text to display on the buttonstyle : Style = buttonStyle
(optional) the style to use when the button is not pushedpushedStyle : Style = buttonPushedStyle
(optional) the style to use when the button is pushedonclick : 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)