Skip to content

Commit 3a8ff9f

Browse files
authored
Add programatic scrolling section to documentation
1 parent 61b9919 commit 3a8ff9f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/vue-virtual-scroller/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,13 @@ Example:
240240
</template>
241241
</RecycleScroller>
242242
```
243+
### Programmatic Scrolling
244+
245+
The virtual scroller components provide useful methods that allow you to programmatically scroll.
246+
247+
* `scrollToItem(index)` - Available on RecycleScroller and DynamicScroller
248+
* `scrollToPosition(position)` - Available on RecycleScroller
249+
* `scrollToBottom()` - Available on DynamicScroller
243250

244251
### Page mode
245252

0 commit comments

Comments
 (0)