Methods of VGrid.
▸ scrollToIndex(indexX, indexY): void
Scroll to the item specified by index.
| Name | Type | Description |
|---|---|---|
indexX |
number |
horizontal index of item |
indexY |
number |
vertical index of item |
void
▸ scrollTo(offsetX, offsetY): void
Scroll to the given offset.
| Name | Type | Description |
|---|---|---|
offsetX |
number |
offset from left |
offsetY |
number |
offset from top |
void
▸ scrollBy(offsetX, offsetY): void
Scroll by the given offset.
| Name | Type | Description |
|---|---|---|
offsetX |
number |
horizontal offset from current position |
offsetY |
number |
vertical offset from current position |
void
• Readonly scrollOffset: [x: number, y: number]
Get current scrollTop or scrollLeft.
• Readonly scrollSize: [width: number, height: number]
Get current scrollHeight or scrollWidth.
• Readonly viewportSize: [width: number, height: number]
Get current offsetHeight or offsetWidth.