Files
Basalt/docs/objects/Frame/setScrollAmount.md
Robert Jelic 4d614372a1 Updated docs
There is still stuff to do
2022-08-28 18:18:26 +02:00

388 B

setScrollAmount

Sets the maximum offset it is allowed to scroll

Parameters:

  1. number maximum y offset

Returns:

  1. frame The frame being used

Usage:

  • Creates a new base frame and makes it scrollable and sets the maximum amount to 25
local myFrame = basalt.createFrame():setScrollable():setScrollAmount(25)
<frame scrollAmount="25"></frame>