Javascript: TXTextControl.SideBarType Enumeration
Description
Specifies the existing side bar types.
Members
| Member | Description |
|---|---|
| None | No side bar. |
| TrackChanges | The "Track Changes" side bar. |
| FieldNavigator | The "Field Navigator" side bar. |
| Comments | The "Comments" side bar. |
| All | All possible side bar types. |
Examples
The following example uses TXTextControl.SideBarType.TrackChanges (the "Track Changes" side bar.) in a document-editing workflow.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.sideBarToggleButton.setAllowedSideBars(
TXTextControl.SideBarType.TrackChanges,
function() {
console.log("set allowed side bars completed.");
},
onTxError
);