type ScrollToPageAction = (options?) => Promise<void>;Action function for scrolling to a specific page
Parameters#
| Parameter | Type | Description |
|---|---|---|
options? |
{ pageId?: number; animate?: boolean; } |
- |
options.pageId? |
number |
The page ID to scroll to (defaults to current page) |
options.animate? |
boolean |
Whether to animate the scroll (default: false) |
Returns#
Promise<void>