ClientSideDataCollectionStore
ClientSideDataCollectionStore is a variant of DataCollectionStore intended for situations when data shall be operated client-side. It is useful for example when handling Composition relationship. ClientSideDataCollectionStore can be created via clientSideCollection initializer function.
dataCollection = clientSideCollection<Pet>(Pet.NAME, {
allItems: entityInstancesArray,
view: 'pet-with-owner-and-type',
sort: 'identificationNumber',
filter: {conditions: [{property: 'name', operator: "contains", value: 'Ro'}]},
limit: 10,
offset: 0,
loadImmediately: true, // true by default
}
);
ClientSideDataCollectionStore inteface extends DataCollectionStore adding the following members:
-
allItemsfield - array of entity instances with default sort order and no filtering applied. -
adjustItemsmethod - setsitemsbased onallItemsand other conditions. Currently it only performs the client-side sorting based onsortfield, client-side filtering is not currently supported.