Ribbon.getCategory

Syntax

getCategory(index: Number);

Parameters

index. Tab index.

Description

The getCategory method returns the tool ribbon tab by its index.

Example

To execute the example, the page must contain the Ribbon component named "ribbon" (see Example of Positioning the Ribbon Component from JSON). The example is executed in the browser console. Get caption of the first tab of tool ribbon:

// Get caption of the first tab of tool ribbon
console.log("Caption of the first tab of tool ribbon: " + ribbon.getCategory(0).getCaption());

As a result, the console displays heading of the first tab:

Heading of the first tool ribbon tab: Main

See also:

Ribbon