setValue

sets a value for Filter (fields and rules for filtering)

void setValue(object value, [any config] );
valueobjectthe object with fields and rules
configanyoperation config

Example

$$("filter").setValue({
  "condition": {
    "filter": "9",
    "type": ">="
  },
  "includes": [9]
});

Details

In order to set a value for Filter, you need to pass an object with the following properties:

  • condition - a set of filtering conditions with the following properties:
    • filter - the filter value;
    • type - the filter rule
  • includes - an array of the values that will be selected in the option list. If you don't want any values to be selected, the parameter must be an empty array
  • start, end - Date objects for the start and end dates (for "date" type).

The second parameter can be of any type (from a string to an object). config will be passed to the onChange event as the last parameter.

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.