RibbonPanel.getControls

Syntax

getControls ();

Description

The getControls method returns the array of controls located on the tab.

Example

To execute the example, the HTML page must contain the Ribbon component named ribbon. The ribbon must include a tab that houses a panel. A button with an image is located on the panel (see Example of Creating the Ribbon Component). Change button image position:

var controls = ribbon.getItems()[0].getPanels()[0].getControls();

controls[0].setImagePosition(PP.LTRB.Left);

After executing the example button image is displayed at the left.

See also:

RibbonPanel