Skip to content

page-picker-modal.token.ts

Modal token for the PDF page picker sidebar.

Defines the data contract and default configuration for opening the page picker modal. Uses Umbraco’s UmbModalToken pattern with typed data in/value out.

Data passed when opening the modal:

PropertyTypeDescription
mediaKeystringUmbraco media item GUID for the PDF
totalPagesnumberTotal number of pages in the PDF
selectedPagesnumber[] | nullCurrently selected pages (1-based), or null for “all”

Value returned when the modal is submitted:

PropertyTypeDescription
selectedPagesnumber[] | nullSelected page numbers (1-based), or null if all pages selected

UMB_PAGE_PICKER_MODAL — sidebar type, medium size.

  • manifest.ts — alias UpDoc.PagePickerModal
  • create-workflow-sidebar.element.ts — page picker during workflow creation
  • up-doc-workflow-source-view.element.ts — page picker in the Source workspace tab