- Docs Update
- Updated List & ScrollbarFrame Docs - Added setOptions for the List Object
This commit is contained in:
26
docs/objects/ScrollableFrame/setScrollAmount.md
Normal file
26
docs/objects/ScrollableFrame/setScrollAmount.md
Normal file
@@ -0,0 +1,26 @@
|
||||
## setScrollAmount
|
||||
|
||||
### Description
|
||||
|
||||
The setScrollAmount method allows you to set the maximum allowed scroll value. This value determines how far the content of the ScrollableFrame can be scrolled.
|
||||
|
||||
### Parameters
|
||||
|
||||
1. `number` The maximum scroll value
|
||||
|
||||
### Returns
|
||||
|
||||
1. `object` The object in use
|
||||
|
||||
### Usage
|
||||
|
||||
* Set the scrolling direction for a ScrollableFrame
|
||||
|
||||
```lua
|
||||
local mainFrame = basalt.createFrame()
|
||||
local scrollableFrame = mainFrame:addScrollableFrame()
|
||||
|
||||
scrollableFrame:setScrollAmount(10)
|
||||
```
|
||||
|
||||
By setting the scroll amount, you can control how much the content of the ScrollableFrame can be scrolled, ensuring that the user can only view a specific range of content at a time.
|
||||
Reference in New Issue
Block a user