38 lines
949 B
Markdown
38 lines
949 B
Markdown
## setScrollable
|
|
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>
|
|
``` |