DataAdapter#watchRecords()

watchRecords (modelName, recordsAdded, recordsUpdated, recordsRemoved) Functionpublic Defined in packages/ember-extension-support/lib/data_adapter.js:172 Fetch the records of a given type and observe them for changes. Parameters: modelName String The model name. recordsAdded Function Callback to call to add records. Takes an array of objects containing wrapped records. The object should have the following properties: columnValues: {Object} The key and value of a table cell. object:

DataAdapter#observerRecord()

observerRecord (record, recordUpdated) Functionprivate Defined in packages/ember-extension-support/lib/data_adapter.js:483 Observes all relevant properties and re-sends the wrapped record when a change occurs. Parameters: record Object The record instance. recordUpdated Function The callback to call when a record is updated. Returns: Function The function to call to remove all observers.

DataAdapter#observeModelType()

observeModelType (modelName, typesUpdated) Functionprivate Defined in packages/ember-extension-support/lib/data_adapter.js:278 Adds observers to a model type class. Parameters: modelName String The model type name. typesUpdated Function Called when a type is modified. Returns: Function The function to call to remove observers.

DataAdapter#releaseMethods

releaseMethodsprivate Defined in packages/ember-extension-support/lib/data_adapter.js:105 Available since 1.3.0 Stores all methods that clear observers. These methods will be called on destruction.

DataAdapter#getRecords()

getRecordsArrayprivate Defined in packages/ember-extension-support/lib/data_adapter.js:401 Fetches all loaded records for a given type. Returns: Array An array of records. This array will be observed for changes, so it should update when new records are added/removed.

DataAdapter#getModelTypes()

getModelTypesArrayprivate Defined in packages/ember-extension-support/lib/data_adapter.js:343 Fetches all models defined in the application. Returns: Array Array of model types.

DataAdapter#getRecordFilterValues()

getRecordFilterValues (record) Objectprivate Defined in packages/ember-extension-support/lib/data_adapter.js:458 Returns the values of filters defined by getFilters. Parameters: record Object The record instance. Returns: Object The filter values.

DataAdapter#getRecordKeywords()

getRecordKeywordsArrayprivate Defined in packages/ember-extension-support/lib/data_adapter.js:447 Returns keywords to match when searching records. Returns: Array Relevant keywords for search.

DataAdapter#getRecordColor()

getRecordColor (record) Stringprivate Defined in packages/ember-extension-support/lib/data_adapter.js:470 Each record can have a color that represents its state. Parameters: record Object The record instance Returns: String The records color. Possible options: black, red, blue, green.

DataAdapter#getRecordColumnValues()

getRecordColumnValuesObjectprivate Defined in packages/ember-extension-support/lib/data_adapter.js:435 Gets the values for each column. Returns: Object Keys should match column names defined by the model type.