ðŸ–Ĩïļlist

Inherits all control functions

Multiselect lists return a table if you pass true as an argument for get and also accept a table for set

Functions

get

local item = gui.list('lua>elements a>test', 'lua>elements a')
item:add('Value 1')
print(item:get());

Returns:

value

string

set

local item = gui.list('lua>elements a>test', 'lua>elements a')
item:add('Value 1')
item:add('Value 2')

item:set('Value 1')

value

string

new value

add

local item = gui.list('lua>elements a>test', 'lua>elements a')
item:add('Value 1')
item:add('Value 2')

value

string

new list item

remove

local item = gui.list('lua>elements a>test', 'lua>elements a')
item:add('Value 1')
item:add('Value 2')

item:remove('Value 1')

value

string

item to remove

Last updated