IsRExist : Boolean;
The IsRExist property determines whether the R Methods button is available.
Use JSON or the setIsRExist method to set the property value and the getIsRExist method to get the property value.
Executing the example requires that HTML page contains the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component).
// Get ribbon var ribbon = workbookBox.getRibbonView(); // Get the Caculations tab var formulasCatView = ribbon.getFormulasCategory(); // Refresh tab formulasCatView.refresh(); // If the button exists, disable it if (formulasCatView.getIsRExist()) { // Get the R Methods button var aggregationButton = formulasCatView.getAggregationButton(); // Disable the button aggregationButton.setEnabled(false); };
After executing the example the R Methods button is disabled.
See also: