QuickAccessControls: Array;
The QuickAccessControls property sets quick access toolbar buttons.
Array items - instances of the PP.Ui.Button class.
Use the setQuickAccessControls method to set the property value from JSON, and the getQuickAccessControls method to return the property value.
To execute the example, the HTML page must contain the Ribbon component named ribbon. At least one button must be available on the quick access toolbar (see Example of Creating the Ribbon Component). Get the number of buttons on the quick access toolbar:
// Get the number of buttons on the quick access toolbar console.log("Number of quick access toolbar buttons: " + ribbon.getQuickAccessControls().length);
As a result, the console displays the number of quick access toolbar buttons:
The number of quick access toolbar buttons: 1
See also: