Controls: Object
The Controls property contains a set of tool ribbon controls.
Set the property value from JSON, return the property by means of the getControls method.
To execute the example, the page must contain the Ribbon component named "ribbon" (see Example of Positioning the Ribbon Component from JSON). The example is executed in the browser console. Get name of the first button of tool ribbon:
// Get name of the first button of tool ribbon console.log("Name of the first button of tool ribbon: " + ribbon.getControls().but1.getContent());
As a result the console displays name of the first button of tool ribbon:
Name of the first button of tool ribbon: Paste
See also: