This type represents a checkbox control.
This type inherits control type. All of its base methods and fields are also available in this type.
control
Constructor
Constructs the checkbox.
Arguments
Name
Type
Description
id
control_id
ID.
Returns
checkbox
Checkbox instance.
Example
local cb = gui.checkbox(gui.control_id('my_id'));
Method
Returns checkbox' value.
None.
value_param<bool>
Value data.
Sets checkbox' value.
It is advised to use this method instead of value_param's set method.
value_param
set
val
bool
New value.
Nothing.
Last updated 1 year ago
local val = cb:get_value():get();
cb:set_value(true);