Cell

Cell

new Cell(attributes, optionsopt)

Source:
Mixes In:
Author:
  • ariel.wexler@vecna.com, kent.willis@vecna.com
See:

An non-persistable object that can listen to and emit events like a models.

Parameters:
Name Type Attributes Default Description
attributes Object

the initial attributes to use for this cell.

options Object <optional>
{}

the options for setting up this cell.

Properties
Name Type Attributes Default Description
register boolean <optional>
false

whether to register this cell in the app-level registry.
By default this will NOT add it to the registry unless set to true because
we have not mechanism that will make sure the cells get removed from the registry
at the appropriate times.

Extends

Members

isModelCompatible

Source:
Mixes In:
Default Value:
  • false
Properties:
Name Type Description
isModelCompatible boolean

Whether a cell can pass as a model or not.
If true, the cell will not fail is persisted functions are invoked
If false, the cell will throw exceptions if persisted function are invoked

Methods

fetch()

Source:
Mixes In:

Override and disable the fetch function

save()

Source:
Mixes In:

Override and disable the save function

sync()

Source:
Mixes In:

Override and disable the sync function

url()

Source:
Mixes In:

Override and disable the url