TX Text Control .NET Server

Javascript: StatusBarViewGenerator.setShowSection Method

Method|Introduced in 30.0

Description

Specifies whether the status bar shows the section number of the current text input position.

Syntax

<void> StatusBarViewGenerator.setShowSection(<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.setShowSection in a practical document-editing workflow. It specifies whether the status bar shows the section number of the current text input position.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.statusBar.setShowSection(
    true,
    function() {
        console.log("set show section completed.");
    },
    onTxError
);