Toggle
Creating Toggle and Editing it
Creating Toggle
local Toggle = Tab:Toggle({
Title = "Toggle",
Desc = "Toggle Description",
Icon = "bird",
Type = "Checkbox",
Value = false, -- default value
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()