Class ObjectEntryStore
Index
Constructors
constructor
- new
Object (data?): ObjectEntryStoreEntry Store Parameters
Optional
data: object
Returns ObjectEntryStore
Accessors
Protected
_data
- get _data(): any
Protected
Returns any
The object data tracked by this store.
id
- get id(): string
Returns string
The ID attribute in object data tracked by this store.
Methods
Protected
_updateSubscribers
subscribe
- subscribe(handler): Unsubscriber
Parameters
- handler: Subscriber<object>
Callback function that is invoked on update / changes.
Returns Unsubscriber
Unsubscribe function.
- handler: Subscriber<object>
toJSON
Static
duplicate
- duplicate(data, arrayStore): void
Invoked by ArrayObjectStore to provide custom duplication. Override this static method in your entry store.
Parameters
- data: object
A copy of local data w/ new ID already set.
- arrayStore: ArrayObjectStore<BaseArrayObjectEntryStore>
The source ArrayObjectStore instance.
Returns void
- data: object
Provides a base implementation for store entries in ArrayObjectStore.
In particular providing the required getting / accessor for the 'id' property.