Javascript: DocumentViewerController.toggleSelection Method
Description
Activates, deactivates, or toggles text selection.
Syntax
<void> DocumentViewerController.toggleSelection([<boolean> activate])Parameters
| Parameter | Description |
|---|---|
| activate | Optional. Explicit state; omit to toggle the current state. |
Return Value
This method does not return a value.
Examples
The following example demonstrates TXDocumentViewer.toggleSelection in a practical Document Viewer workflow. Toggles the line text selection functionality of the DocumentViewer.
TXDocumentViewer.toggleSelection();
console.log("toggle selection requested.");