EmberObjectUtils.ObjectWithArrayMixin Class
A mixin to add observers to array properties.
Item Index
Methods
Properties
Methods
getArrayFromRange
-
l
-
h
-
s
Returns an array of integers from a starting number to another number with steps.
Parameters:
-
l
NumberStarting number.
-
h
NumberEnding number.
-
s
NumberSteps.
Returns:
propCanAdd
-
ele
-
idx
Method called when deciding whether to add an ele or not. This is a fallback method. A method with name
Parameters:
-
ele
Object | InstanceThe element that can be added or not.
-
idx
NumberThe indice of the element that can be added or not.
Returns:
propWasAdded
-
eles
-
idxs
Method called after array elements are added. This is a fallback method. A method with name
Parameters:
-
eles
ArrayThe elements that are added.
-
idxs
ArrayThe indices of the elements that are added.
propWillBeDeleted
-
eles
-
idxs
Method called just before array elements will be deleted. This is a fallback method. A method with name
Parameters:
-
eles
ArrayThe elements that will be deleted.
-
idxs
ArrayThe indices of the elements that will be deleted.
Properties
arrayProps
Array
List of keys to array properties.