TX Text Control .NET Server

Javascript: TableRow.setIsHeader Method

Method|Introduced in 28.0

Description

Sets a value specifying whether the table row is part of the table's header.

Syntax

<void> TableRow.setIsHeader(<boolean> isHeader, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
isHeader

Specifies whether the table row is part of the table's header.

callback

Optional. Is called when the operation completed.

errorCallback

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

Examples

The following example demonstrates TableRow.setIsHeader in a practical document-editing workflow. It sets a value specifying whether the table row is part of the table's header.

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

function configureIsHeader(tableRow) {
    tableRow.setIsHeader(
        true,
        function() {
            console.log("set is header completed.");
        },
        onTxError
    );
}