Files
Basalt/docs/objects/Checkbox.md
Samuel Pizette cb98307e44 bad syntax fix
2022-06-09 11:08:26 -04:00

436 B

With checkbox, the user can set a bool to true or false

Here are all possible functions available for checkbox: Remember button also inherits from Object

Create a onChange event:

local mainFrame = basalt.createFrame("myFirstFrame"):show()
local aCheckbox = mainFrame:addCheckbox("myFirstCheckbox"):onChange(function(self) basalt.debug("The value got changed into "..self:getValue()) end):show()