multi_selection_t
get#
returns whether the item is active, can either be indexed or by name
Example
print(multi_selection:get(1)) -- check if "item1" is active
-- or...
print(multi_selection:get("item1")) -- check if "item1" is active
set#
sets whether an item is active, can either be indexed or by name
Example
print(multi_selection:set(1, true)) -- set "item1" to active
-- or...
print(multi_selection:set("item1", true)) -- set "item1" to active
get_item_name#
returns the item name for the passed index
Example
get_items#
returns an indexed table of all the items
Example
set_items#
overrides the entire list of items
Example
add_item#
adds an item to the list
Example
set_visible#
sets whether this control is visible
Example
add_color_picker#
adds a color picker sub control
color_picker_t add_color_picker(<string> name, [optional] <color_t> default_color, [optional] <bool> has_alpha)
Example
add_keybind#
adds a keybind sub control