sets an array of fields that will be used for filtering

array fields;


    view: "querybuilder",
    id: "querybuilder",
    fields: [
        { id:"fname",   value:"First Name",     type:"string" },
        { id:"lname",   value:"Last Name",      type:"string" },
        { id:"age",     value:"Age",            type:"number" },
        { id:"bdate",   value:"Birth Date",     type:"date" }

Related samples


Each field object has these properties:

  • id - (string,number) the id of the field;
  • value - (string) the value of the field;
  • type - (string) the type of the field. Can be string, number or date;
  • validate - (function) the validation rule for the input field.
See also
Back to top