Search
Loading...
Skip to content

Type Alias: ScrollToPageAction

type ScrollToPageAction = (options?) => Promise<void>;

Action function for scrolling to a specific page

Parameters#

ParameterTypeDescription
options?{ pageId?: number; animate?: boolean; }-
options.pageId?numberThe page ID to scroll to (defaults to current page)
options.animate?booleanWhether to animate the scroll (default: false)

Returns#

Promise<void>