value

sets filtering rules and fields combinations

object value;

Example

value: {
  glue: "or",
  rules: [
    {
      field: "first_name",
      includes: ["Diana"]
    },
    // other fields and rules
  ]
}

Related samples

Details

Value is a reactive property that contains all the filtering rules and field combinations. This object includes the following properties:

  • glue (string) - the logic for combining filtering rules:
    "AND" (default) - to display records that correspond to all rules at once;
    "OR" - to show records that correspond to at least one of the rules.
  • rules (array) - a set of filtering rules. Each element of the array is a rule with the following properties:
    • field (string) - the id of the field. Must match with a data field id of the related component which will be filtered with the help of Query;
    • condition (object) - an object with the following properties:
      • filter - value passed to the field;
      • type - applied condition (filtering rule).
    • includes (array) - an array of the included values.

Read more information on how to set or get value in the related article.

See also
Back to top