-
Notifications
You must be signed in to change notification settings - Fork 0
Checkbox
Travis Gibson edited this page Sep 20, 2018
·
6 revisions
A standard checkbox.
new(Str:D $text)
Creates a new Checkbox.
text() returns Str
Returns the text of the Checkbox.
set-text(Str:D $text)
or text(Str:D $text)
Sets the text of the Checkbox.
toggled() returns Supply
Returns a Supply. An event is emitted whenever the Checkbox is toggled.
checked() returns Bool
Returns True if checked.
set-checked(Bool:D(Int) $checked)
or checked(Bool:D(Int) $checked)
Sets the checked state of the checkbox.