Class ScrollData

Component for scroll data. It validates it and reacts on changes

class ScrollData

Fields

TypeNameDescription
Signal!(...)
onChange

Properties

TypeNameDescription
float
page[get] Page (visible area) size. Always >= 0, may be > range
float
position[get, set] Current scroll position, between 0 and range - page
float
range[get] Scroll length (max position + page). Always >= 0

Methods

NameDescription
setRange (range, page) Set new range and page values for scrolling. They must be >= 0