updated docs

This commit is contained in:
Samkist
2022-05-30 02:23:40 -04:00
parent 2a8817df96
commit e5bc39a6f7
51 changed files with 1673 additions and 3347 deletions

View File

@@ -1,14 +1,13 @@
# Checkbox
With checkbox, the user can set a bool to true or false
Here are all possible functions available for checkbox:<be>
Remember checkbox inherits from [object](/objects/Object):
Create a onChange event:
````lua
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()
````
With checkbox, the user can set a bool to true or false
Here are all possible functions available for checkbox:<be>
Remember checkbox inherits from [object](https://github.com/NoryiE/NyoUI/wiki/Object):
Create a onChange event:
````lua
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()
````