WindUI

v1.6.41 Beta

Toggle

Creating Toggle and Editing it

Creating Toggle

local Toggle = Tab:Toggle({
    Title = "Toggle",
    Desc = "Toggle Description",
    Icon = "bird",
    Type = "Checkbox",
    Default = false,
    Callback = function(state) 
        print("Toggle Activated" .. tostring(state))
    end
})

Set Title

Toggle:SetTitle("Title Example")

Set Description

Toggle:SetDesc("Description Example")

Set Toggle value

Toggle:Set(true)

Lock Element

Toggle:Lock()

Unlock Element

Toggle:Unlock()

Destroy Element

Toggle:Destroy()