Try Install Learn Blog API Packages GitHub
Pages
mint-ui

Search
Basic information
Entities
Versions
Dependencies
mint-color 0.9.0 <= v < 1.0.0

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

children
:
Array(Html)
=
[]

The children to render.

extraPadding
:
Number
=
5

An extra padding from the scroll bars.

maxSize
:
Number
=
300

The maximum size of the component.

orientation
:
String
=
"vertical"

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

shadowSize
:
Number
=
20

The size of the indicator.

Functions

recalculate
:
Promise(Void)

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

recalculateFromSize
(
dimensions
:
Dom.Dimensions
)
:
Promise(Void)

This is needed to be a separate function so the provider doesn't re-subscribe every update.

render
:
Html

Renders the component.