APIs

Show:

Mixin for route, that restrictions on the list form.

Methods

_filtersPredicate

() BasePredicate | Undefined private

Return predicate for QueryBuilder or undefined.

Returns:

BasePredicate | Undefined:

Predicate for QueryBuilder or undefined.

predicateForFilter

(
  • filter
)
BasePredicate | Null

Builds predicate for filter.

Parameters:

  • filter Object

    Object ({ name, condition, pattern }) with parameters for filter.

Returns:

BasePredicate | Null:

Predicate to filter through.

Example:

// app/routes/example.js
                    ...
                    predicateForFilter(filter) {
                      if (filter.type === 'string' && filter.condition === 'like') {
                        return new StringPredicate(filter.name).contains(filter.pattern);
                      }
                    
                      return this._super(...arguments);
                    },
                    ...
                    

Properties

filter

String

String with search query.

Default: null

filterPredicate

BasePredicate

Result predicate with filters restrictions for olv.

Default: null

queryParams

Object

Configuration hash for this route's queryParams. More info.

resultPredicate

BasePredicate

Result predicate with all restrictions for olv.

Default: null