Javascript: StatusBarViewGenerator.getPageText Method
Description
Gets the text in the 'Page' area of the status bar.
Syntax
<void> StatusBarViewGenerator.getPageText(<RequestStringCallback> 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.getPageText in a practical document-editing workflow. It gets the text in the 'Page' area of the status bar.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.statusBar.getPageText(
function(result) {
console.log("get page text result:", result);
},
onTxError
);