- Docs Update

- Updated List & ScrollbarFrame Docs
- Added setOptions for the List Object
This commit is contained in:
Robert Jelic
2023-05-06 18:32:33 +02:00
parent e87557aba9
commit 2931a95c20
7 changed files with 104 additions and 30 deletions

View File

@@ -0,0 +1,22 @@
## getOptions
### Description
Returns all items as a table.
#### Returns
1. `table` All items
### Usage
* Creates a default list with 3 entries and prints a table.
```lua
local mainFrame = basalt.createFrame()
local aList = mainFrame:addList()
aList:addItem("1. Entry")
aList:addItem("2. Entry", colors.yellow)
aList:addItem("3. Entry", colors.yellow, colors.green)
basalt.debug(aList:getOptions())
```