PDFViewer.showComment()
Open the Comments panel on the comment with that id (a reply's or a status's id opens its comment): its card chosen, its mark scrolled to and outlined.
methodComments and panelssince 1.0.0
Signature
showComment(id: string): Promise<boolean>
Parameters
| Parameter | Type | Description |
|---|---|---|
| id | string | A comment's id; a reply's or a status's id opens its comment. |
Returns
Promise<boolean> false if no comment has it or the panel is not offered.
Throws
INVALID_STATEafterdestroy().
Example
TypeScript
await viewer.showComment(comment.id);