Methods
-
addFilter( newFilters [, position ] )
-
Description
Adds a new filter to the builder
Parameters
Name Type Attributes Default Description newFilters
QueryBuilder.Filter | Array.<Filter> position
int | string <optional> #end index or '#start' or '#end'
Fires
Throws
Details
-
removeFilter( filterIds [, deleteOrphans ] )
-
Description
Removes a filter from the builder
Parameters
Name Type Attributes Default Description filterIds
string | Array.<string> deleteOrphans
boolean <optional> false delete rules using old filters
Fires
Throws
Details
-
setFilters( [ deleteOrphans ], filters )
-
Description
Change the filters of the builder
Parameters
Name Type Attributes Default Description deleteOrphans
boolean <optional> false delete rules using old filters
filters
Array.<QueryBuilder> Fires
Throws
Details
Events
-
changer:setFilters
-
Description
Modifies the filters before
module:plugins.ChangeFilters.setFilters
methodParameters
Name Type Description filters
Array.<QueryBuilder.Filter> Returns
Details
-
afterSetFilters
-
Description
After
module:plugins.ChangeFilters.setFilters
methodParameters
Name Type Description filters
Array.<QueryBuilder.Filter> Details