TX Text Control .NET Server

Javascript: InputPosition.setInactiveMarker Method

Method|Introduced in 28.0

Description

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

Syntax

<void> InputPosition.setInactiveMarker(<Boolean> isInactive, <EmptyRequestCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
isInactive

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

callback

Is called when the operation completed.

errorCallback

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

Examples

The following example demonstrates InputPosition.setInactiveMarker in a practical document-editing workflow. It sets 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.setInactiveMarker(
    true,
    function() {
        console.log("set inactive marker completed.");
    },
    onTxError
);