Javascript: Ribbon.selectedTab Property
Description
Gets or sets the currently selected ribbon tab name. Possible values are: "tabDefault", "tabInsert", "tabPageLayout", "tabMailings", "tabView", "tabTableLayout", "tabObjectFormat", "tabShapeFormat", "tabPermissions", "tabFormula" and "tabChartFormatting".
Syntax
<string> Ribbon.selectedTabExamples
The following example demonstrates Ribbon.selectedTab in a practical document-editing workflow. It gets or sets the currently selected ribbon tab name. Possible values are: "tabDefault", "tabInsert", "tabPageLayout", "tabMailings", "tabView", "tabTableLayout", "tabObjectFormat", "tabShapeFormat", "tabPermissions", "tabFormula" and "tabChartFormatting".
const selectedTab = TXTextControl.ribbon.selectedTab;
console.log("selected tab:", selectedTab);