Class CrudArrayObjectStore<T>
Type Parameters
Hierarchy
- ArrayObjectStore<T>
- CrudArrayObjectStore (view full)
Index
Constructors
Accessors
Methods
Constructors
constructor
- new
Crud <T>(opts?): CrudArrayObjectStore<T>Array Object Store 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
- 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
Optional parameters.