ArrayProxy#contentArrayDidChange()

contentArrayDidChange (contentArray, start, removeCount, addCount) private Defined in packages/ember-runtime/lib/system/array_proxy.js:167 Override to implement content array didChange observer. Parameters: contentArray Ember.Array the content array start Number starting index of the change removeCount Number count of items removed addCount Number count of items added

ArrayProxy#content

contentEmber.Arrayprivate Defined in packages/ember-runtime/lib/system/array_proxy.js:78 The content array. Must be an object that implements Ember.Array and/or Ember.MutableArray.

ArrayProxy#arrangedContent

arrangedContentprivate Defined in packages/ember-runtime/lib/system/array_proxy.js:88 The array that the proxy pretends to be. In the default ArrayProxy implementation, this and content are the same. Subclasses of ArrayProxy can override this property to provide things like sorting and filtering.

ArrayProxy

Ember.ArrayProxy Class PUBLIC Extends: Ember.Object Uses: Ember.MutableArray Defined in: packages/ember-runtime/lib/system/array_proxy.js:37 Module: ember-runtime An ArrayProxy wraps any other object that implements Ember.Array and/or Ember.MutableArray, forwarding all requests. This makes it very useful for a number of binding use cases or other cases where being able to swap out the underlying array is useful. A simple example of usage: let pets = ['dog', 'cat', 'fish']; let ap = Ember.A

Array#[]

[]public Inherited from Ember.Enumerable but overwritten in packages/ember-runtime/lib/mixins/array.js:281 This is the handler for the special array content property. If you get this property, it will return this. If you set this property to a new array, it will replace the current content. This property overrides the default property defined in Ember.Enumerable. Returns: this

Array#slice()

slice (beginIndex, endIndex) Arraypublic Defined in packages/ember-runtime/lib/mixins/array.js:324 Returns a new array that is a slice of the receiver. This implementation uses the observable array methods to retrieve the objects for the new slice. let arr = ['red', 'green', 'blue']; arr.slice(0); // ['red', 'green', 'blue'] arr.slice(0, 2); // ['red', 'green'] arr.slice(1, 100); // ['green', 'blue'] Parameters: beginIndex Number (Optional) index to begin slicing from. en

Array#removeArrayObserver()

removeArrayObserver (target, opts) Ember.Arraypublic Defined in packages/ember-runtime/lib/mixins/array.js:490 Removes an array observer from the object if the observer is current registered. Calling this method multiple times with the same object will have no effect. Parameters: target Object The object observing the array. opts Object Optional hash of configuration options including `willChange` and `didChange` option. Returns: Ember.Array receiver

Array#objectsAt()

objectsAt (indexes) Arraypublic Defined in packages/ember-runtime/lib/mixins/array.js:257 This returns the objects at the specified indexes, using objectAt. let arr = ['a', 'b', 'c', 'd']; arr.objectsAt([0, 1, 2]); // ['a', 'b', 'c'] arr.objectsAt([2, 3, 4]); // ['c', 'd', undefined] Parameters: indexes Array An array of indexes of items to return. Returns: Array

Array#objectAt()

objectAt (idx) *public Defined in packages/ember-runtime/lib/mixins/array.js:225 Returns the object at the given index. If the given index is negative or is greater or equal than the array length, returns undefined. This is one of the primitives you must implement to support Ember.Array. If your object supports retrieving the value of an array item using get() (i.e. myArray.get(0)), then you do not need to implement this method yourself. let arr = ['a', 'b', 'c', 'd']; arr.objectAt(0); /

Array#length

lengthNumberpublic Defined in packages/ember-runtime/lib/mixins/array.js:214 Required. You must implement this method to apply this mixin. Your array must support the length property. Your replace methods should set this property whenever it changes.