defines a custom set of filtering rules
{
view:"filter",
mode:"number",
field:"year",
conditions:[
"equal", "contains",
// custom condition and input
{ id:"between", value:"Between", batch:"rangeslider", handler:function(a, b){
return a >= b[0] && a <= b[1];
}}
],
inputs:["text", "rangeslider"]
// ...
}
Each object in the conditions array contains these properties:
By default, full lists of conditions look as follows:
conditions:["contains", "notContains", "equal",
"notEqual", "beginsWith", "notBeginsWith", "endsWith", "notEndsWith" ]
All the text conditions use batch "text" for input.
conditions:["greater", "less", "greaterOrEqual",
"lessOrEqual", "equal", "notEqual", "between", "notBetween" ]
Date conditions use batches datepicker and daterangepicker (for "between" and "notBetween" rules) for input.
conditions:["greater", "less", "greaterOrEqual",
"lessOrEqual", "equal", "notEqual", "contains", "notContains" ]
All the number conditions use batch "text" for input.