Files
Basalt/docs/objects/List/setScrollable.md
Robert Jelic bb1b1beb79 Basalt 1.7 Update
- New Objects (Flexbox, Graph, Treeview)
- Pluginsystem to add/remove functionality
- Reworked the entire Object system, instead of one big Object Class we have multiple classes: Object, VisualObject, ChangeableObject
- Instead of one big Frame Class we have multiple Frame Classes: BaseFrame, Frame, MovableFrame, ScrollableFrame, MonitorFrame, Flexbox
- Removed the Animation Object, and added a animation plugin instead
- Removed the Graphic Object and merged it's functionality with the image object
- Updated currently existing objects
2023-04-30 17:05:34 +02:00

47 lines
968 B
Markdown

## setScrollable
### Description
Makes it possible to scroll while the mouse is over the list.
### Parameters
1. `boolean` If the list should be scrollable or not
### Returns
1. `object` The object in use
### Usage
* Creates a new list and makes it scrollable.
```lua
local mainFrame = basalt.createFrame()
local aList = mainFrame:addList():setScrollable(true)
:addItem("1. Entry")
:addItem("2. Entry")
:addItem("3. Entry")
:addItem("4. Entry")
:addItem("5. Entry")
:addItem("6. Entry")
:addItem("7. Entry")
:addItem("8. Entry")
:addItem("9. Entry")
```
```xml
<dropdown scrollable="true">
<item><text>1. Entry</text></item>
<item><text>2. Entry</text></item>
<item><text>3. Entry</text></item>
<item><text>4. Entry</text></item>
<item><text>5. Entry</text></item>
<item><text>6. Entry</text></item>
<item><text>7. Entry</text></item>
<item><text>8. Entry</text></item>
<item><text>9. Entry</text></item>
</dropdown>
```