List.items readwrite


Provides access to the List items.

Example

--! luart-extensions import ui -- create a simple Window local win = ui.Window("ListItem:loadicon() sample", 316, 246) local list = ui.List(win, {"Disk", "Network", "Search"}, 10, 40, 120) local icons = { Disk = 8, Network = 19, Search = 23 } -- set List style property to "icons" to view ListItems icons list.style = "icons" -- all icons are in a resources directory for item, icon in pairs(icons) do list.items[item]:loadicon("shell32.dll", icon) end -- shows the Window win:show() -- update user interface repeat ui.update() until not win.visible