clearFilter(uniqueName: String)
[starting from version: 1.4]
Clears the filter which was applied previously to the specified field.
flexmonster.setFilter("Country", { "members": [ "country.[poland]", "country.[uk]", "country.[ukraine]", ] } ); flexmonster.getFilter("Country"); /* method getFilter() returns the following Object: { "members": [ "country.[poland]", "country.[uk]", "country.[ukraine]" ] } */ flexmonster.clearFilter("Country"); flexmonster.getFilter("Country"); /* after clearFilter() call, method getFilter() returns null: null */
Open the example on JSFiddle.