Updated Checkbox (markdown)
@@ -15,9 +15,17 @@ There are currently no unique functions. Everything you need you can see in the
|
||||
|
||||
# Examples
|
||||
|
||||
Get and set the current value:
|
||||
````lua
|
||||
local mainFrame = CreateFrame("myFirstFrame"):show()
|
||||
local aCheckbox = mainFrame:addCheckbox("myFirstCheckbox"):setValue(true):show()
|
||||
NyoUI.debug(aCheckbox:getValue()) - returns true
|
||||
````
|
||||
|
||||
Create a onChange event:
|
||||
````lua
|
||||
local mainFrame = CreateFrame("myFirstFrame"):show()
|
||||
local aCheckbox = mainFrame:addCheckbox("myFirstCheckbox"):onChange(function(self) NyoUI.debug("The value got changed into "..self:getValue()) end):show()
|
||||
|
||||
````
|
||||
|
||||
|
||||
Reference in New Issue
Block a user