APIs

Show:

Mixin for edit-form-controller for ObjectListView support.

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:

actions.switchHierarchicalMode

()

Switch hierarchical mode.

objectListViewLimitPredicate

(
  • options
)
BasePredicate public

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:

  • options Object

    Method options

    • [modelName] String optional

      Type of records to load

    • [projectionName] String optional

      Projection name to load data by

    • [params] String optional

      Current route query parameters

Returns:

BasePredicate:

The predicate to limit loaded data

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

appState

AppStateService

Service for managing the state of the application.

computedSorting

Object

Dictionary with sorting data related to properties.

customFolvContent

Promise

Content of FOLV on this edit form.

folvEditFormRoute

String

Name of related to FOLV edit form route.

Default: undefined

folvModelName

String

Name of FOLV model.

Default: undefined

folvProjection

String

Name of FOLV projection.

Default: undefined

queryParams

Object
Configuration hash for this route's queryParams. [More info](https://www.emberjs.com/api/ember/release/classes/Route/properties/queryParams?anchor=queryParams).

recordsTotalCount

Number

Total count of FOLV records.

resultPredicate

BasePredicate

Result predicate with all restrictions for olv.

Default: null