TX Text Control .NET Server

Javascript: TXTextControl.getRedoActionName Method

Method|Introduced in 28.0

Description

Gets a string that represents the name of the action that will be performed when a call to the redo method is made.

Syntax

<void> TXTextControl.getRedoActionName(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the name of the action that will be performed.

errorCallback

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

Examples

The following example demonstrates TXTextControl.getRedoActionName in a practical document-editing workflow. It gets a string that represents the name of the action that will be performed when a call to the redo method is made.

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

TXTextControl.getRedoActionName(
    function(result) {
        console.log("get redo action name result:", result);
    },
    onTxError
);