DS Server

Javascript: InputPosition.getInactiveMarker Method

Method|Introduced in 28.0

Description

Gets whether the current text input position when the TextControl is inactive and the blinking caret is not visible.

Syntax

<void> InputPosition.getInactiveMarker(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives whether the current text input position when the TextControl is inactive and the blinking caret is not visible.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates InputPosition.getInactiveMarker in a practical document-editing workflow. It gets whether the current text input position when the TextControl is inactive and the blinking caret is not visible.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.inputPosition.getInactiveMarker(
    function(result) {
        if (result) {
            console.log("get inactive marker is available.");
        } else {
            console.warn("get inactive marker is not available in the current document state.");
        }
    },
    onTxError
);