Ribbon.showCategoryContent

Syntax

showCategoryContent (value);

Parameters

value. Parameter that determines whether to display the tab in the ribbon. If the parameter is set to True, the contents is displayed, when the value is False, the contents is not displayed.

Description

The showCategoryContent method expands tabs contents.

Example

To execute the example the HTML page must contain the Ribbon component that includes at least one tab (see Example of Creating the Ribbon Component). Create a button, clicking which expands tab contents if it has been hidden.

var button = new PP.Ui.Button({ParentNode: "btn", Content: "Expand"})

button.Click.add(function (sender, args) {

        var isHidden = ribbon.getIsCategoryContentHidden()

        if (isHidden == true)

ribbon.showCategoryContent(true)})

After executing the example hidden contents of the tabs expands on clicking the button.

See also:

Ribbon