Attributes
bounces
iOS
Clay
Harmony
1.4
Enable bounce effect
enable-scroll
Android
iOS
Clay
Harmony
1.4
Enable dragging
initial-scroll-offset
Android
iOS
Clay
Harmony
2.17
Initial scroll position, only effective once, in PX
initial-scroll-to-index
Android
iOS
Clay
Harmony
2.17
Scroll to specified child node on first screen, only effective once. All direct child nodes must be flatten=false.
lower-threshold
Android
iOS
Clay
Harmony
1.4
Set upper threshold to bindscrolltoupper event.
scroll-bar-enable
iOS
Clay
Harmony
1.4
Enable scrollbar
scroll-orientation
Android
iOS
Clay
Harmony
3.0
Replacement of scroll-x and scroll-y
upper-threshold
Android
iOS
Clay
Harmony
1.4
Set upper threshold to bindscrolltoupper event.
Events
Frontend can bind corresponding event callbacks to listen for runtime behaviors of the element, as shown below.
bindcontentsizechanged
Android
iOS
Harmony
1.6
This event is triggered when the scrollview's content size changed.
bindscroll
Android
iOS
Clay
Harmony
1.4
This event is triggered when the scrollview is scrolling.
bindscrollend
Android
iOS
Clay
Harmony
1.6
This event is triggered when the scrollview's scroll ended.
bindscrolltolower
Android
iOS
Harmony
1.4
This event is triggered when the lower/right edge of the scrolling area intersects with the visible area defined by the lowerThreshold.
bindscrolltoupper
Android
iOS
Harmony
1.4
This event is triggered when the upper/left edge of the scrolling area intersects with the visible area defined by the upperThreshold.
Methods
Frontend can invoke component methods via the SelectorQuery API.
autoScroll
Android
iOS
Clay
Harmony
Automatic scrolling
getScrollInfo
Android
iOS
Clay
Harmony
Get scroll info
scrollBy
Android
iOS
Clay
Harmony
Scroll by specified offset
scrollTo
Android
iOS
Clay
Harmony
Scroll to specified position