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
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.