TX Text Control .NET Server

Javascript: StatusBarViewGenerator.setShowZoomTrackBar Method

Method|Introduced in 30.0

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.setShowZoomTrackBar(<boolean> value, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
value

The property value.

callback

Optional. Is called when the operation completed.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates StatusBarViewGenerator.setShowZoomTrackBar 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.setShowZoomTrackBar(
    true,
    function() {
        console.log("set show zoom track bar completed.");
    },
    onTxError
);