clearFilter();
The clearFilter method resets filter in the tree shown in panels of selection wizard.
Executing the example requires that the HTML page contains the ExpressBox component named expressBox (see Example of Creating the ExpressBox Component). Then remove filter for the tree shown in one of the selection wizard panels:
var dimBarMaster = expressBox.getPropertyBarView().getDimBarMasterView(); // Display panel dimBarMaster.show(); // Get first dimension key var dimKey = dimBarMaster.getCurrentState().dims.its.it[0].k; var masterPanel = dimBarMaster.getPanelByDimKey(dimKey); // Get panel data source var source = masterPanel.getSource(); console.log("Key: " + source.getKey() + ", Name: " + source.getName()); // Reset filter on panels in selection wizard masterPanel.clearFilter();
After executing the example the browser console displays information on the wizard panel data source: its key and name:
Key: 1646, Name: Countries
Initially filter value for the dimension tree in the Countries panel was set to "Russia":
After executing the example the tree filter is removed:
See also: