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
| Parameter | Type | Description |
|---|---|---|
| panel | SidebarTab | null | 'pages', 'outline', 'attachments', 'signatures' or 'comments'; null closes the sidebar. |
Returns
boolean false if that panel is not offered.
Throws
INVALID_STATEafterdestroy().
Example
TypeScript
viewer.openPanel('comments');