getBreadcrumb ();
The getBreadcrumb method returns an instance of the MetaAttributeBreadCrumbView class.
To execute the example, the page must contain the WorkbookBox component named workbookBox (see Example of Creating the WorkbookBox Component), and also add the following code in the handler, that processes document opening event:
//Get a component used to display and control workbook series var breadcrumb = workbookBox.getDataView().getBreadcrumb(); //Get the first element from the collection of metaattributes var mattr = breadcrumb.getMetaAttributes().getItem(0); //Get identifier of hierarchy attribute from the first breadcrumb attribute var attrId = mattr.getAttributeId(); //Get attribute dimension tree var dimTree = mattr.getTree(); //Get the current displayed dimension var dim = dimTree.getSource(); //Select all dimension elements dimTree.getDimTreeCtrl().getService().selectAll(dim, function (sender, asrgs) { //Refresh selection in dimension tress of all attributes breadcrumb.refreshSelections(); });
After the code execution the HTML page shows the WorkbookBox component, and six elements are selected in the first attribute in the breadcrumb.
See also: