Page Selection
Navigate to a page from the host UI and listen for the corresponding selection result.
When a user clicks a page in your own page rail, send selectPage to the canvas. The payload can use either pageIndex or pageNumber, but page index is usually easier because it matches the pageList payload directly.
The canvas responds with selectPageResult, and the host should keep pageList as the source of truth for the final active-page state.
Send selectPage from the page click handler and listen for selectPageResult for confirmation.
Select by page index
Select by page number
Listen for selectPageResult
This example connects the page list UI to canvas navigation using page indexes.
Use this full standalone HTML document when you want a minimal host page for page selection.
Open the focused demo to click page cards and watch selectPage and selectPageResult live.
File Page Selection Demo
Focused live demo for page selection.
Preview opens in a large modal for zoom-friendly review.
