DS Server

Javascript: DocumentViewerController.toggleSelection Method

Method|Introduced in 24.0

Description

Activates, deactivates, or toggles text selection.

Syntax

<void> DocumentViewerController.toggleSelection([<boolean> activate])

Parameters

ParameterDescription
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.");