Javascript: ListFormat.getRestartNumbering Method
Description
Gets a value determining whether a new numbered list begins.
Syntax
<void> ListFormat.getRestartNumbering(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives whether a new numbered list begins. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates ListFormat.getRestartNumbering in a practical document-editing workflow. It gets a value determining whether a new numbered list begins.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.listFormat.getRestartNumbering(
function(result) {
if (result) {
console.log("get restart numbering is available.");
} else {
console.warn("get restart numbering is not available in the current document state.");
}
},
onTxError
);