Class CrudArrayObjectStore<S>
Type Parameters
- S extends BaseObjectEntryStore<any>
                 
                    
                  Hierarchy
              
              - ArrayObjectStore<S>- CrudArrayObjectStore (View Summary)
 
Index
Constructors
Accessors
Methods
Constructors
constructor
- new CrudArrayObjectStore<S extends BaseObjectEntryStore<any>>(
 options: CrudArrayObjectStore.Options.Config<S>,
 ): CrudArrayObjectStore<S>Type Parameters- S extends BaseObjectEntryStore<any>
 Parameters- options: CrudArrayObjectStore.Options.Config<S>CrudArrayObjectStore options. 
 Returns CrudArrayObjectStore<S>
Accessors
Protected_data 
- Returns S[]- The internal data array tracked allowing child classes direct access. 
dataReducer 
- Returns DynArrayReducer<S>- The data reducer. 
length
- get length(): numberReturns numberThe length of all data. 
StaticEntryStore 
- Returns typeof ObjectEntryStore- The default object entry store constructor that can facilitate the creation of the required ArrayObjectStore.Options.Config.StoreClass and generic - Ttype parameter.
Methods
[iterator]
clearEntries 
- Removes all child store entries. - Returns void
createEntry 
- Creates a new store from given data. - Parameters- entryData: ExtractDataType<S>
 - Returns S- Associated store with entry data. 
deleteEntry 
- Deletes a given entry store by ID from this world setting array store instance. - Parameters- id: stringID of entry to delete. 
 - Returns boolean- Delete operation successful. 
- id: string
duplicateEntry 
- Duplicates an entry store by the given ID. - Parameters- id: stringUUIDv4 string. 
 - Returns S- Instance of StoreClass. 
- id: string
findEntry 
getEntry 
- Finds an entry store instance by 'id' / UUIDv4. - Parameters- id: stringA UUIDv4 string. 
 - Returns S- Entry store instance. 
- id: string
set
- 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: ExtractDataType<S>[]
 - Returns void
subscribe
- Parameters- handler: Subscriber<S[]>Callback function that is invoked on update / changes. 
 - Returns Unsubscriber- Unsubscribe function. 
- handler: Subscriber<S[]>
toJSON 
- Returns S[]
updateSubscribers 
- Updates subscribers, but provides special handling when a - crudDispatchfunction is attached. When- updateis an object with a valid UUIDv4 string as the id property the- crudDispatchfunction is invoked along with the data payload.- Parameters- Optionalupdate: boolean | ExtractDataType<S>- A boolean indicating that subscribers should be notified otherwise 
 - Returns void
Store type.