TX Text Control .NET Server

Javascript: TextField.setDoubledInputPosition Method

Method|Introduced in 28.0

Description

Gets whether a text field has a doubled input position in front of its first character and behind its last character.

Syntax

<void> TextField.setDoubledInputPosition(<boolean> doubledInputPosition, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
doubledInputPosition

Specifies whether a text field has a doubled input position in front of its first character and behind its last character.

callback

Optional. Is called when the operation completed.

errorCallback

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

Examples

The following example demonstrates TextField.setDoubledInputPosition in a practical document-editing workflow. It gets whether a text field has a doubled input position in front of its first character and behind its last character.

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

function configureDoubledInputPosition(textField) {
    textField.setDoubledInputPosition(
        true,
        function() {
            console.log("set doubled input position completed.");
        },
        onTxError
    );
}