Files
Basalt2/docs/references/elements/List.md
2025-02-16 19:31:38 +00:00

855 B

List : VisualElement

Properties

Property Type Default Description
items table List of items to display
selectedIndex number Currently selected item index
selectable boolean Whether items can be selected
offset number Scrolling offset
selectedColor color Color for selected item

Functions

Method Returns Description
List.new -
List:addItem -
List:clear -
List:init -
List:mouse_click -
List:mouse_scroll -
List:onSelect -
List:removeItem -
List:render -

List.new()

List:addItem()

List:clear()

List:init()

List:mouse_click()

List:mouse_scroll()

List:onSelect()

List:removeItem()

List:render()