Dropdown
Creating Dropdown and Editing it
Creating Dropdown
Multi Dropdown
local Dropdown = Tab:Dropdown({
Title = "Dropdown (Multi)",
Values = { "Category A", "Category B", "Category C" },
Value = { "Category A" },
Multi = true,
AllowNone = true,
Callback = function(option)
print("Categories selected: " .. game:GetService("HttpService"):JSONEncode(option))
end
})
No multi Dropdown
local Dropdown = Tab:Dropdown({
Title = "Dropdown (Multi)",
Values = { "Category A", "Category B", "Category C" },
Value = "Category A",
Callback = function(option)
print("Category selected: " .. option)
end
})
Set Title
Dropdown:SetTitle("Title Example")
Set Description
Dropdown:SetDesc("Description Example")
Select value
- For default Dropdown
Dropdown:Select("Category B")
- For Multi Dropdown
Dropdown:Select({"Category B"})
Refresh Values (Update)
Dropdown:Refresh({ "New Category A", "New Category B" })
Lock Element
Dropdown:Lock()
Unlock Element
Dropdown:Unlock()
Destroy Element
Dropdown:Destroy()