TX Text Control .NET Server

SideBarTypeRequestCallback Function

Function|Introduced in 30.0

Description

Callback function for requests expectiong a SideBarType value.

Syntax

function(<SideBarType> sideBarType)

Examples

The following example demonstrates SideBarTypeRequestCallback in a practical document-editing workflow. Callback function for requests expectiong a SideBarType value.

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

function sideBarTypeRequestCallback(sideBarType) {
    console.log("side bar type:", sideBarType);
}

TXTextControl.sideBarToggleButton.getAllowedSideBars(sideBarTypeRequestCallback, onTxError);