A checkbox widget.
var libui = require('libui');
var win = new libui.UiWindow('UiCheckbox example', 640, 480, true);
var widget = new libui.UiCheckbox();
win.setChild(widget);
win.onClosing(function () {
win.close();
libui.stopLoop();
});
win.show();
libui.startLoop();
new libui.UiCheckbox()
Create a new UiCheckbox object.
See properties implementation for generic details on how properties are implemented.
Whether the widget should be visible or hidden.
Read write.
Defaults to true
.
Whether the widget should be enabled or disabled.
Read write.
Defaults to true
.
Whether the checkbox is checked or unchecked. Read write. Defaults to false
The static text of the button. Read write.
Destroy and free the control.
Change the parent of the control
Arguments
- parent: UiControl - the new parent of the widget or null to detach it.
Return whether the control is a top level one or not.
Set the value of property visible
Arguments
- value: Boolean - The new value for
visible
property.
Return the value of property visible
Set the value of property enabled
Arguments
- value: Boolean - The new value for
enabled
property.
Return the value of property enabled
Set the value of property checked
Arguments
- value: Boolean - The new value for
checked
property.
Return the value of property checked
Set the value of property text
Arguments
- value: String - The new value for
text
property.
Return the value of property text
See events implementation for generic details on how events are implemented.
Emitted whenever property checked
change.