DS Server

Javascript: TableCell.getText Method

Method|Introduced in 28.0

Description

Gets the cell's text.

Syntax

<void> TableCell.getText(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the cell's text.

errorCallback

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

Examples

The following example demonstrates TableCell.getText in a practical document-editing workflow. It gets the cell's text.

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

function inspectText(tableCell) {
    tableCell.getText(
        function(result) {
            console.log("get text result:", result);
        },
        onTxError
    );
}