FlexberryObjectlistviewOnEditFormControllerMixin Class
Extends Mixin
Module: ember-flexberry
Mixin for edit-form-controller for ObjectListView support.
Item Index
Methods
Methods
_filtersPredicate
()
BasePredicate | Undefined
private
Return predicate for
QueryBuilder
or undefined
.
Returns:
BasePredicate | Undefined:
Predicate for
QueryBuilder
or undefined
.
actions.beforeDeleteAllRecords
()
Hook that executes before deleting all records on all pages. Need to be overriden in corresponding application controller.
actions.loadRecordsById
(
-
id
-
Instance
-
property
Set in property
for target
promise that load nested records.
Parameters:
-
id
StringRecord ID.
-
Instance
ObjectListViewRowComponent -
property
StringProperty name into ObjectListViewRowComponent.
actions.switchHierarchicalMode
()
Switch hierarchical mode.
objectListViewLimitPredicate
(
BasePredicate
public
-
options
It forms the limit predicate for FOLV loaded data on edit form.
By default it returns undefined
.
In order to set specific limit predicate, this method have to be overriden on applied-specific controller.
Parameters:
Returns:
BasePredicate:
The predicate to limit loaded data
predicateForFilter
(
BasePredicate | Null
-
filter
Builds predicate for filter.
Parameters:
-
filter
ObjectObject ({ 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
queryParams
Object
Configuration hash for this route's queryParams. [More info](https://www.emberjs.com/api/ember/release/classes/Route/properties/queryParams?anchor=queryParams).
resultPredicate
BasePredicate
Result predicate with all restrictions for olv.
Default: null