Try Install Learn Blog API Packages GitHub
Pages

Ui.ScrollPanel

A scrollable container with custom scrollbars and indicators for more items at the start and end of the container.

States

clientSize
:
Number
=
0

The current client size.

scrollPosition
:
Number
=
0

The current scroll position.

scrollSize
:
Number
=
0

The current scroll size.

Properties

animateScroll
:
Bool
=
false

Wether or not programatic the scrolling should be animated.

children
:
Array(Html)
=
[]

The children to render.

extraPadding
:
Number
=
10

An extra padding from the scroll bars.

fromColor
:
String
=
"rgba(0,0,0,0)"

The start color of the indicator gradient.

maxSize
:
Number
=
300

The maximum size of the component.

orientation
:
String
=
"vertical"

The orientation, this determines which way the panel should scroll.

size
:
Number
=
20

The size of the indicator.

theme
:
Maybe(Ui.Theme)
=
Maybe::Nothing

The theme for the button.

toColor
:
String
=
"rgba(0,0,0,0.1)"

The end color of the indicator gradient.

Functions

recalculate
:
Promise(Never, Void)

Sets the state variables from the current state of the element.

render
:
Html

Renders the component.