Javascript: TableRow.getAllowPageBreak Method
Description
Gets a value specifying how the table row is formatted at page breaks.
Syntax
<void> TableRow.getAllowPageBreak(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| 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
);
}