Updated Checkbox (markdown)

Robert Jelic
2022-04-02 08:22:02 +02:00
parent 82af86bfdf
commit 670fab3b92

@@ -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()
````