Class CrudArrayObjectStore<T>
Type Parameters
Hierarchy
- ArrayObjectStore<T>
- CrudArrayObjectStore (View Summary)
Index
Constructors
Accessors
Methods
Constructors
constructor
- new CrudArrayObjectStore<T = BaseArrayObjectEntryStore>(
opts?: {
crudDispatch?: CrudDispatch;
extraData?: object;
rest?: ArrayObjectStoreParams;
},
): CrudArrayObjectStore<T> Type Parameters
Parameters
Optional
opts: {
crudDispatch?: CrudDispatch;
extraData?: object;
rest?: ArrayObjectStoreParams;
}Optional
crudDispatch?: CrudDispatchOptional
extraData?: objectOptional
rest?: ArrayObjectStoreParamsRest of ArrayObjectStore parameters.
Returns CrudArrayObjectStore<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
subscribe
- subscribe(handler: Subscriber<T[]>): Unsubscriber
Parameters
- handler: Subscriber<T[]>
Callback function that is invoked on update / changes.
Returns Unsubscriber
Unsubscribe function.
- handler: Subscriber<T[]>
toJSON
updateSubscribers
- updateSubscribers(update?: ArrayObjectUpdateData): void
Updates subscribers.
Parameters
Optional
update: ArrayObjectUpdateData
Returns void
Optional parameters.