ScrollRestrictType||doc136554

September 20, 2022

Format

ScrollableView.ScrollRestrictType

Describe

The bounding mode of the sliding area, defaults to ScrollRestrictType.Clamped (limited).

Code Example

image.png

-- create layout window
local APIRootWindow = UI:CreateGUIWindow("API")

--Set the window to the root node of the UI
APIRootWindow.Parent = UI.Root

--According to the name to get the ScrollableView control for testing
local scrollView = APIRootWindow.APIScrollableView

--Set the boundary limit mode of the sliding area to elastic
scrollView.ScrollRestrictType = Enum.ScrollRestrictType.Elastic