Web SDKv1.0.0

PDFViewer.openPanel()

Open a sidebar panel, or close the sidebar with null. Which panels are offered is the sidebar option.
methodComments and panelssince 1.0.0

Signature

openPanel(panel: SidebarTab | null): boolean

Parameters

ParameterTypeDescription
panelSidebarTab | null'pages', 'outline', 'attachments', 'signatures' or 'comments'; null closes the sidebar.

Returns

boolean false if that panel is not offered.

Throws

  • INVALID_STATE after destroy().

Example

TypeScript
viewer.openPanel('comments');

More in PDFViewer