Ribbon.CategoryContentCollapsed

Syntax

CategoryContentCollapsed: function (sender, args);

Parameters

sender. Event source.

args. Event information.

Description

The CategoryContentCollapsed event occurs on collapsing tab contents.

Comments

The tabs are collapsed on clicking the button at the top right corner of the application ribbon.

Example

To execute the example, the HTML page must contain the application ribbon named ribbon (see Example of Creating the Ribbon Component) that contains at least one tab. Add a handler for the CategoryContentCollapsed event.

ribbon.CategoryContentCollapsed.add(function (sender, args)

       {

           ribbon.getItems()[0].setCaption("Collapsed")

       });

After executing the example on collapsing the tab contents, heading of the first tab is changed to "Collapsed".

See also:

Ribbon