@journeyapps/reactor-lib-data-layer
Classes
| Class | Description |
|---|---|
| Collection | - |
| LifecycleCollection | Wraps an existing collection with data-to-model conversion, and is smart about creating / patching and deleting models based on how the wrapping collection loads items |
| PaginatedCollection | - |
| PaginatedSearchResult | - |
Interfaces
AsSearchResultOptions
Type Parameters
| Type Parameter |
|---|
T |
Properties
| Property | Type |
|---|---|
idTransformer | (item) => string |
match | (item) => boolean |
CollectionListener
Properties
| Property | Type |
|---|---|
cleared | () => any |
LifecycleCollectionOptions
Type Parameters
| Type Parameter |
|---|
Serialized |
Model extends LifecycleModel<Serialized> |
Properties
| Property | Type |
|---|---|
collection | Collection<Serialized> |
generateModel | (d) => Model |
getKeyForSerialized | (s) => string |
LifecycleModel
Type Parameters
| Type Parameter |
|---|
Serialized |
Properties
| Property | Type |
|---|---|
key | string |
Methods
dispose()
dispose(): any;
Returns
any
patch()
patch(data): any;
Parameters
| Parameter | Type |
|---|---|
data | Serialized |
Returns
any
LoadEvent
Properties
| Property | Type |
|---|---|
aborted | boolean |
PaginatedCollectionOptions
Type Parameters
| Type Parameter |
|---|
T |
R |
Properties
| Property | Type |
|---|---|
hasMore? | (res) => boolean |
loaderIterator? | () => | AsyncIterator<R, any, any> | Promise<AsyncIterator<R, any, any>> |
transformer | (res) => T[] |
PaginatedSearchResultEntry
Extends
SearchResultEntry
Type Parameters
| Type Parameter | Default type |
|---|---|
T | any |
Properties
| Property | Type | Inherited from |
|---|---|---|
item | T | - |
key | string | SearchResultEntry.key |