API Docs for: 1.0.0.6ab0d507
Show:

EmberObjectUtils.ObjectWithArrayMixin Class

A mixin to add observers to array properties.

Methods

getArrayFromRange

(
  • l
  • h
  • s
)
Array static

Returns an array of integers from a starting number to another number with steps.

Parameters:

  • l Number

    Starting number.

  • h Number

    Ending number.

  • s Number

    Steps.

Returns:

Array:

propCanAdd

(
  • ele
  • idx
)
Boolean

Method called when deciding whether to add an ele or not. This is a fallback method. A method with name CanAdd can be added to handle for 'propKey' seperately.

Parameters:

  • ele Object | Instance

    The element that can be added or not.

  • idx Number

    The indice of the element that can be added or not.

Returns:

Boolean:

propWasAdded

(
  • eles
  • idxs
)

Method called after array elements are added. This is a fallback method. A method with name WasAdded can be added to handle for 'propKey' seperately.

Parameters:

  • eles Array

    The elements that are added.

  • idxs Array

    The 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 WillBeDeleted can be added to handle for 'propKey' seperately.

Parameters:

  • eles Array

    The elements that will be deleted.

  • idxs Array

    The indices of the elements that will be deleted.

Properties

arrayProps

Array

List of keys to array properties.