TX Text Control .NET Server

Javascript: TableRow.getAllowPageBreak Method

Method|Introduced in 28.0

Description

Gets a value specifying how the table row is formatted at page breaks.

Syntax

<void> TableRow.getAllowPageBreak(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives whether the row is formatted at page breaks.

errorCallback

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

Examples

The following example demonstrates TableRow.getAllowPageBreak in a practical document-editing workflow. It gets a value specifying how the table row is formatted at page breaks.

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

function inspectAllowPageBreak(tableRow) {
    tableRow.getAllowPageBreak(
        function(result) {
            if (result) {
                console.log("get allow page break is available.");
            } else {
                console.warn("get allow page break is not available in the current document state.");
            }
        },
        onTxError
    );
}