DS Server

Javascript: TableColumn.getWidth Method

Method|Introduced in 28.0

Description

Gets, in twips, the width of the column.

Syntax

<void> TableColumn.getWidth(<RequestNumberCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the column's width.

errorCallback

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

Examples

The following example demonstrates TableColumn.getWidth in a practical document-editing workflow. Gets, in twips, the width of the column.

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

function inspectWidth(tableColumn) {
    tableColumn.getWidth(
        function(result) {
            console.log("get width result:", result);
        },
        onTxError
    );
}