Add a dropdown to a tab by callingDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Footagesus/WindUI/llms.txt
Use this file to discover all available pages before exploring further.
:Dropdown({...}). The returned object lets you select values and refresh the list programmatically.
Parameters
Label displayed on the dropdown trigger row.
Secondary line of text rendered beneath the title.
The list of options to display. Accepts three formats:Simple stringsObject entries — each entry is a table with Divider — inserts a visual separator between entries.
Title, and optionally Desc, Icon, Callback, and Locked.The default selected value. Use the item string for simple lists, the item’s
Title string for object lists, or an index number. Pass a table to pre-select multiple items when Multi = true.When
true, multiple items can be selected simultaneously. The callback receives a table of selected values.When
true, the user can deselect all items. Only relevant when Multi = true.Identifier used by the config system to save and restore this element’s value between sessions.
Called when the selection changes. For simple string lists, receives the selected string. For object lists, receives the selected object (or a table of objects when
Multi = true).Methods
dropdown:Select(values: table)
dropdown:Select(values: table)
Programmatically sets the current selection. Pass a table of values matching the format in
Values.dropdown:Refresh(newValues: table)
dropdown:Refresh(newValues: table)
Replaces the entire options list and re-renders the menu. The current selection is cleared.
Examples
Simple string list
Multi-select with AllowNone
Advanced object values with icons and descriptions
Each entry is an object with its ownCallback. This is useful for context-menu–style dropdowns where each item performs a distinct action.
Locked items in an object list
SetLocked = true on individual entries to make them non-selectable.
Dynamic list with Refresh
Use:Refresh() to swap out the options list at runtime, and :Select() to reset the selection.
Call
:Refresh() and :Select() inside task.spawn when triggering them from another dropdown’s callback. This avoids re-entrancy issues with the menu rendering.