File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
packages/vue-virtual-scroller Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -240,13 +240,10 @@ Example:
240240 </template >
241241</RecycleScroller >
242242```
243- ### Programmatic Scrolling
243+ ### Methods
244244
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
245+ * ` scrollToItem(index) ` - Scrolls to the item at the given index.
246+ * ` scrollToPosition(position) ` - Scrolls to the given position in pixels.
250247
251248### Page mode
252249
@@ -395,6 +392,11 @@ Extends all the RecycleScroller scoped slot props.
395392
396393Extends all the RecycleScroller other slots.
397394
395+ ### Methods
396+
397+ * ` scrollToItem(index) ` - Scrolls to the item at the given index.
398+ * ` scrollToBottom() ` - Scrolls to the end of the list.
399+
398400## DynamicScrollerItem
399401
400402The component that should wrap all the items in a DynamicScroller.
You can’t perform that action at this time.
0 commit comments