ExpressView.getRibbonView

Syntax

getRibbonView();

Description

The getRibbonView method returns view of the express report tool ribbon.

Example

Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Get view of the express report toolbar, add a new group of buttons to a tool ribbon tab, and place a single button in this group:

// Get express report tool ribbon view
var ribbonView = expressBox.getRibbonView();
// Add a custom button to a new button group on the toolbar
ribbonView.getControl().getCategory(0).addPanel(
new PP.Ui.RibbonPanel({
    Elements: [new PP.Ui.RibbonButton({
        Content: "My button"
    })],
    Caption: "My group"
}));

After executing the example a new group of buttons named My Group is added in the express report ribbon. This group contains a button with the same name:

See also:

ExpressView