ToggleButton
A push button that “snaps in”, i.e. it is selected when pressed and deselected when pressed again.
Import this type with “”
Type: string, supported values: left
, , center
, default:
The horizontal alignment of the button text.
checked
Type: boolean, default: false
The checked state of the toggle button.
image
Type: Image
An image to be displayed on the button.
Type: string
The button’s label text.
textColor
The color of the text.
alignmentChanged
Fired when the property has changed.
Event Parameters
value: string The new value of .
Fired when the checked property has changed.
Event Parameters
target: this The widget the event was fired on.
value: boolean The new value of checked.
imageChanged
Fired when the image property has changed.
Event Parameters
value: Image The new value of .
select
Event Parameters
target: this The widget the event was fired on.
checked: boolean The current value of checked.
Fired when the property has changed.
Event Parameters
value: string The new value of .
textColorChanged
Fired when the property has changed.
Event Parameters
target: this The widget the event was fired on.
value: The new value of textColor.
原文: