EScrollbar Scrollbar
import EUI 1.0
Examples
Scroll positioning and edge masks
Edit text, properties, or events, then select Run.
Scrollbar
Edit text, properties, or events, then select Run.
Properties
alwaysboolAlways show the scrollbar.
falsebottomReachedboolWhether the scroll area has reached the corresponding edge, updated by scroll events.
falsecomponentReadyboolWhether scroll-component initialization has completed.
falsedistancerealDistance from a scroll edge at which it is considered reached, in pixels.
0enabledboolAllow interaction; false disables the control.
trueheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightleftReachedboolWhether the scroll area has reached the corresponding edge, updated by scroll events.
falsemaskvarShow a mask; scrollbars also support edge-fade mask settings.
falsemaskSizerealScroll-edge fade mask size in pixels.
40maxHeightrealMaximum display height in pixels; 0 adds no extra limit.
0minSizerealMinimum scrollbar thumb length in pixels.
36rightReachedboolWhether the scroll area has reached the corresponding edge, updated by scroll events.
falsetopReachedboolWhether the scroll area has reached the corresponding edge, updated by scroll events.
falsevisibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthscrollLeftrealRead onlyCurrent horizontal or vertical scroll offset in pixels.
Computed at runtimescrollTargetvarRead onlyFlickable controlled by the scrollbar.
Computed at runtimescrollToprealRead onlyCurrent horizontal or vertical scroll offset in pixels.
Computed at runtimeSignals
endReached(string direction)Emitted on reaching a scroll edge; direction identifies the edge.
scrolled(real scrollTop, real scrollLeft)Emitted when the scroll position changes; scrollTop and scrollLeft are the vertical and horizontal positions.
Methods
update()Refresh the scroll range and scrollbar dimensions after content size changes.
setScrollTop(top)Set the vertical scroll position top in pixels.
setScrollLeft(left)Set the horizontal scroll position left in pixels.
scrollTo(left, top)Scroll to the specified position, using horizontal and vertical coordinates or the supported scroll configuration.