Updated Checkbox (markdown)
@@ -6,8 +6,8 @@ Here are all possible functions available for checkbox:<be>
|
|||||||
|
|
||||||
Create a onChange event:
|
Create a onChange event:
|
||||||
````lua
|
````lua
|
||||||
local mainFrame = NyoUI.createFrame("myFirstFrame"):show()
|
local mainFrame = basalt.createFrame("myFirstFrame"):show()
|
||||||
local aCheckbox = mainFrame:addCheckbox("myFirstCheckbox"):onChange(function(self) NyoUI.debug("The value got changed into "..self:getValue()) end):show()
|
local aCheckbox = mainFrame:addCheckbox("myFirstCheckbox"):onChange(function(self) basalt.debug("The value got changed into "..self:getValue()) end):show()
|
||||||
|
|
||||||
````
|
````
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user