¶
luxe
API (2025.1.2
)¶
luxe: ui/check
module¶
UICheck¶
import "luxe: ui/check" for UICheck
UICheck
is aControl
that represents a boolean toggle.var check = UICheck.create(ui) UICheck.set_state(check, true) Control.set_events(check) {|event| if(event.type == UIEvent.change) { Log.print("Check is toggled %(event.change ? "on" : "off")") } }
Entity
)
¶UICheck
Create a new check control.
UICheck
, state: Bool
)
¶None
Set the current state of a check.
UICheck
)
¶Bool
Get whether a check is toggled on or off.