Dropdown
Creating Dropdown and Editing it
Creating Dropdown
Dropdown
local Dropdown = Tab:Dropdown({
Title = "Dropdown (Multi)",
Desc = "Dropdown Description",
Values = { "Category A", "Category B", "Category C" },
Value = { "Category A" },
Multi = true,
AllowNone = true,
Callback = function(option)
-- option is a table: { "Category A", "Category B" }
print("Categories selected: " .. game:GetService("HttpService"):JSONEncode(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", "Category C"})
Refresh Values (Update)
Dropdown:Refresh({ "New Category A", "New Category B" })Lock Element
Dropdown:Lock()Unlock Element
Dropdown:Unlock()Destroy Element
Dropdown:Destroy()