ArrayModifier.ArraySortGroup Class
Extends ArrayModifier.ArrayModifierGroup
Defined in:
Module: ember-array-modifier-groupsaddon/array-modifier-groups/ArraySortGroup.js:6
Parent Module: ember-array-modifier
Array sort modifier group.
Methods
canAdd
(
Boolean
-
item
Method that returns whether an item can be added or not.
Parameters:
-
itemClassItem that is to be checked whether it can be added or not.
Returns:
Boolean:
compare
(
-
a -
b
Compare method used in sorting of array.
Parameters:
-
aAny -
bAny
modify
(
-
array
Method called to modify an entire array. Default is to sort the array.
Parameters:
-
arrayArrayThe array to modify.
modifySingle
(
-
array -
item -
idx
Method called to modify a single item. It remove the item if already present and uses binary insert to insert the item to array.
Parameters:
-
arrayArrayThe array to modify.
-
itemInstanceThe item to modify.
-
idxNumberIndex 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: 10
ember-array-modifier