StandardButton
#
The StandardButton looks like a button, but instead of customizing with text
and icon
,
it can used one of the pre-defined kind
and the text and icon will depend on the style.
Properties#
enabled
: (in bool): Defaults to true. When false, the button can’t be pressedhas-focus
: (out bool): Set to true when the button currently has the focuskind
(in enumStandardButtonKind
): The kind of button, one ofok
cancel
,apply
,close
,reset
,help
,yes
,no,
abort
,retry
orignore
pressed
: (out bool): Set to true when the button is pressed.
Callbacks#
clicked()
Example#
import { StandardButton, VerticalBox } from "std-widgets.slint";
export component Example inherits Window {
VerticalBox {
StandardButton { kind: ok; }
StandardButton { kind: apply; }
StandardButton { kind: cancel; }
}
}