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:
-
lNumberStarting number.
-
hNumberEnding number.
-
sNumberSteps.
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:
-
eleObject | InstanceThe element that can be added or not.
-
idxNumberThe 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:
-
elesArrayThe elements that are added.
-
idxsArrayThe 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:
-
elesArrayThe elements that will be deleted.
-
idxsArrayThe indices of the elements that will be deleted.
Properties
arrayProps
Array
List of keys to array properties.
