Javascript: StatusBarViewGenerator.getShowPage Method
Description
Specifies whether the status bar shows the page number of the current text input position.
Syntax
<void> StatusBarViewGenerator.getShowPage(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the property value. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates StatusBarViewGenerator.getShowPage in a practical document-editing workflow. It specifies whether the status bar shows the page number of the current text input position.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.statusBar.getShowPage(
function(result) {
if (result) {
console.log("get show page is available.");
} else {
console.warn("get show page is not available in the current document state.");
}
},
onTxError
);