clearAttrs();
The clearAttrs method removes all observation attributes from corresponding panel in the workbook.
To execute the example, the HTML page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component), and at least one observation attribute must be added to workbook data source (attributes are edited only in a desktop application). Remove all observation attributes from corresponding panel in the workbook:
// Get workbook properties panel var propertyBar = workbookBox.getPropertyBarView(); // Get observation attributes panel var observeAttributesPanel = propertyBar.getObserveAttributesPanel(); // Display and expand this panel observeAttributesPanel.show(); observeAttributesPanel.expand(); // Clear the panel from all observation attributes observeAttributesPanel.clearAttrs();
After executing the example the Observation Attributes panel becomes empty:
See also: