Javascript: StatusBarViewGenerator.getShowZoomTrackBar Method
Description
Specifies whether the status bar displays a track bar instead of a simple number to show and to set the zooming factor.
Syntax
<void> StatusBarViewGenerator.getShowZoomTrackBar(<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.getShowZoomTrackBar in a practical document-editing workflow. It specifies whether the status bar displays a track bar instead of a simple number to show and to set the zooming factor.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.statusBar.getShowZoomTrackBar(
function(result) {
if (result) {
console.log("get show zoom track bar is available.");
} else {
console.warn("get show zoom track bar is not available in the current document state.");
}
},
onTxError
);