Class ArrayObjectStore<T>
Type Parameters
Hierarchy
- ArrayObjectStore (view full)
Index
Constructors
Accessors
Methods
Constructors
constructor
- new
Array <T>(params?): ArrayObjectStore<T>Object Store Type Parameters
Parameters
Optional
params: ArrayObjectStoreParams
Returns ArrayObjectStore<T>
Accessors
Protected
_data
dataReducer
- get dataReducer(): DynArrayReducer<T>
Returns DynArrayReducer<T>
The data reducer.
length
- get length(): number
Returns number
The length of all data.
Static
EntryStore
- get EntryStore(): ObjectEntryStore
Returns ObjectEntryStore
The default object entry store constructor.
Methods
[iterator]
clearEntries
createEntry
deleteEntry
duplicateEntry
findEntry
getEntry
set
- set(updateList): void
Sets the children store data by 'id', adds new entry store instances, or removes entries that are no longer in the update list.
Parameters
- updateList: T[]
Returns void
subscribe
- subscribe(handler): Unsubscriber
Parameters
- handler: Subscriber<T[]>
Callback function that is invoked on update / changes.
Returns Unsubscriber
Unsubscribe function.
- handler: Subscriber<T[]>
toJSON
updateSubscribers
- update
Subscribers (update?): void Updates subscribers.
Parameters
Optional
update: ArrayObjectUpdateData
Returns void
Provide an iterator for public access to entry stores.