@Js
@Serializable {
simple=false
collection=false
}
ScrollBar is used to position a widget too wide or tall to be visible at one time. ScrollBars cannot be created directly, rather they are accessed widgets which support scrolling via hbar
and vbar
.
Slots
-
internal native Void checkModifyListeners()
-
new make()
Internal constructor.
- maxSource
-
native Int max
The maximum value of the scroll bar.
- minSource
-
native Int min
The minimum value of the scroll bar.
- onModifySource
-
@Transient
readonly EventListeners onModify := EventListeners()Callback when scroll bar value is modified.
Event id fired:
Event fields:
Event.data
: new value of scroll bar
- orientationSource
-
native Orientation orientation()
Horizontal or vertical.
- pageSource
-
native Int page
Page increment size relative to difference between min and max.
- thumbSource
-
native Int thumb
The size of thumb relative to difference between min and max.
- valSource
-
native Int val
The current value of the scroll bar.