Class ScrollData
Component for scroll data. It validates it and reacts on changes
class ScrollData
Fields
Type | Name | Description |
---|---|---|
|
onChange
|
Properties
Type | Name | Description |
---|---|---|
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
Name | Description |
---|---|
setRange
(range, page)
|
Set new range and page values for scrolling. They must be >= 0
|