You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--- callback|function|Function called when selected
14
+
--- foreground|color|Normal text color
15
+
--- background|color|Normal background color
16
+
--- selectedForeground|color|Text color when selected
17
+
--- selectedBackground|color|Background when selected
18
+
19
+
--- A collapsible selection menu that expands to show multiple options when clicked. Supports single and multi-selection modes, custom item styling, separators, and item callbacks.
20
+
--- @usage -- Create a styled dropdown menu
21
+
--- @usage local dropdown = main:addDropDown()
22
+
--- @usage :setPosition(5, 5)
23
+
--- @usage :setSize(20, 1) -- Height expands when opened
24
+
--- @usage :setSelectedText("Select an option...")
25
+
--- @usage
26
+
--- @usage -- Add items with different styles and callbacks
27
+
--- @usage dropdown:setItems({
28
+
--- @usage {
29
+
--- @usage text = "Category A",
30
+
--- @usage background = colors.blue,
31
+
--- @usage foreground = colors.white
32
+
--- @usage },
33
+
--- @usage { separator = true, text = "-" }, -- Add a separator
0 commit comments