inputs

array of inputs for the filter

array inputs;

Example

{
    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"]
    // ...
}

Related samples

Details

By default, the inputs array contains the following items:

  • text - standard input field for text and number modes;
  • datepicker - datepicker control, used in the date mode;
  • daterangepicker - daterangepicker control, used in the date mode for "between" and "notBetween" rules;
  • none - the absence of input.
See also
Back to top