Fork me on GitHub
Show:

FilteredCollection

Extends aeris.Collection

Summary

A FilteredCollection acts as a subset of some 'source' collection. It is bound to the models in it's source collection, though only models which pass a defined filter will be set on the FilteredCollection.

Constructor

aeris.util.aeris.FilteredCollection

Syntax

aeris.util.aeris.FilteredCollection

(
  • opt_models
  • opt_options
)

Summary

Parameters:

Methods

bindToSourceCollection_

Syntax

bindToSourceCollection_

() private

Summary

ensureSourceCollection_

Syntax

ensureSourceCollection_

() private

Summary

setFilter

Syntax

setFilter

(
  • filter
  • opt_ctx
)

Summary

Filters the collection, using models from the source collection.

Filter will continue to be used when keeping the FilteredCollection in sync with its source collection.

Parameters:

updateModelsFromSource_

Syntax

updateModelsFromSource_

() private

Summary

Properties

sourceCollection_

Syntax

sourceCollection_

aeris.Collection private

Summary