ScrollView
A composite that allows its content to overflow either vertically (default) or horizontally. Children of a ScrollView may not be attached to its edge in scrolling direction (to the bottom for vertical scrolling, to the right for horizontal scrolling). Includes Composite
Properties
direction
Type: string, supported values: vertical
, horizontal
, default: vertical
Specifies the scrolling direction of the scroll composite.
This property can only be set in the tabris.create
method. It cannot be changed after widget creation.
scrollX
Type: number
The horizontal scrolling position.
scrollY
Type: number
The vertical scrolling position.
Events
“scroll” (widget, offset)
Parameters:
- widget: ScrollView
- offset: Object, indicates the current scrolling position, e.g.
{x: number, y: number}
Fired on scrolling.