Get Free Trial
API reference
Table of contents

clearFilter

clearFilter(uniqueName: String)

[starting from version: 1.4]

Clears the filter which was applied previously to the specified hierarchy.

Parameters

  • uniqueName – String. The hierarchy’s unique name.

Example

flexmonster.setFilter("Category", 
  {
    "members": [
      "category.[bikes]",
      "category.[cars]"
    ]
  }
);
flexmonster.getFilter('Category');

/*
method getFilter() returns the following Object:
{
  "members": [
    "category.[bikes]",
    "category.[cars]"
  ]
}
*/

flexmonster.clearFilter('Category');

flexmonster.getFilter('Category');
/*
after clearFilter() call, method getFilter() returns null:
null
*/

Open the example on JSFiddle.

See also

getFilter
setFilter