Page Selection
Navigate to a page from the host UI using page indexes or page numbers programmatically.
When a user interacts with a page sidebar, select tabs, or click index links in your parent UI, command the Canvas to navigate viewport focuses using the documents API.
The SDK exposes selectPage to scroll directly to targeted locations, resolving immediately and broadcasting the final active state through the pageList and pageChanged streams.
- Flexible Referencing: Select target pages using either 0-based page indices or 1-based human-facing page numbers.
- Promise-Driven Resolution: Await execution directly at call sites to confirm successful brokerage.
- State Synchronization: Treat subsequent active indicators inside the
pageListevent payload as the final state confirmation.
Command viewport page selection programmatically using these SDK options:
Select by page index
Select by page number
Copy these project setup files to configure mounting, file load, and direct page selection bindings:
Control viewport page navigation inside a React custom pager bar:
Control viewport page navigation inside a Vue composition component:
Control viewport page navigation inside standalone Angular template bindings:
Open the focused demo to click page cards and watch selectPage commands and pageChanged events live.
File Page Selection Demo
Focused live demo for page selection.
Preview opens in a large modal for zoom-friendly review.
