Skip to content

Commit 64632d1

Browse files
authored
Separate methods sections
1 parent 3a8ff9f commit 64632d1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

packages/vue-virtual-scroller/README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff 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

396393
Extends 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

400402
The component that should wrap all the items in a DynamicScroller.

0 commit comments

Comments
 (0)