luxe: ui/check.control
import "luxe: ui/check.control" for Datano docs found
Variables
Section titled “Variables”var state : Bool = falsevar override : Object = ObjectUICheck
Section titled “UICheck”import "luxe: ui/check.control" for UICheck
UICheckis aControlthat 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")")}}
UICheck.create(.)
Section titled “UICheck.create(.)”UICheck.create(ui_entity : Entity) : UICheckCreate a new check control.
UICheck.set_state(..)
Section titled “UICheck.set_state(..)”UICheck.set_state(control : UICheck, state : Bool) : NoneSet the current state of a check.
UICheck.get_state(.)
Section titled “UICheck.get_state(.)”UICheck.get_state(control : UICheck) : BoolGet whether a check is toggled on or off.