ArrayModifier.ArrayFilterGroup Class
Extends ArrayModifier.ArrayModifierGroup
Module: ember-array-modifier-groupsParent Module: ember-array-modifier
Array filter modifier group which has ArrayModifier.ArrayFilterModifier and ArrayModifier.ArraySearchModifier
Methods
canAdd
(
Boolean
-
item
Method that returns whether an item can be added or not.
Parameters:
-
item
ClassItem that is to be checked whether it can be added or not.
Returns:
Boolean:
modify
(
-
array
Method called to modify an entire array. Filters the array based on canAdd method.
Parameters:
-
array
ArrayThe array to modify.
modifySingle
(
-
array
-
item
-
idx
Method called to modify a single item. Checks canAdd and adds the item if true, else removes it.
Parameters:
-
array
ArrayThe array to modify.
-
item
InstanceThe item to modify.
-
idx
NumberIndex of item in array.
Properties
arrayModifiers
Array
Array modifiers present in the group. Use object while creating.
priority
Number
Priority to run this modifier group
Default: 2