Skip to content

docs: add programatic scrolling section to documentation #902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions packages/vue-virtual-scroller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ Example:
</template>
</RecycleScroller>
```
### Methods

* `scrollToItem(index)` - Scrolls to the item at the given index.
* `scrollToPosition(position)` - Scrolls to the given position in pixels.

### Page mode

Expand Down Expand Up @@ -388,6 +392,11 @@ Extends all the RecycleScroller scoped slot props.

Extends all the RecycleScroller other slots.

### Methods

* `scrollToItem(index)` - Scrolls to the item at the given index.
* `scrollToBottom()` - Scrolls to the end of the list.

## DynamicScrollerItem

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