Skip to main content

CollectionService

__type(offsetInPixels: number,options: ): void

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
adaptadapt(data: undefined | null | T): I
addActiveaddActive<B>(by: B,target: | []): I[]
addDisabledaddDisabled<B>(by: B,target: | []): I[]
addFilteraddFilter(filterOrCriteria: QueryFilterOrCriteria,parentFilterId: QueryFilterId): void
addFilterCriteriaaddFilterCriteria(field: string,operator: QueryFilterCriteriaOperator,value: null | string | number | boolean | QueryFilterCriteriaValue[],not: boolean,id: string | number | symbol,parentFilterId: string | number | symbol): void
addHighlightedaddHighlighted<B>(by: B,target: | []): I[]
addSelectedaddSelected<B>(by: B,target: | []): I[]
addSortByaddSortBy(sortBy: QuerySortBy,prepend: boolean): void
alignauto | center | end | start
alignauto | center | end | start
asServiceasService(): default<T, I, S>
callSagacallSaga(sagaName: string,args: any[]): void
clearFieldsclearFields(): void
clearFilterclearFilter(): void
clearLimitclearLimit(): void
clearOffsetclearOffset(): void
clearParamclearParam(key: string): void
clearParamsclearParams(): void
clearSearchclearSearch(): void
clearSortclearSort(): void
clearSortByclearSortBy(): void
constructornew CollectionService<T,I,S>()
data
dataSource
destroydestroy(): void
filterfilter(filter: QueryFilter | QueryFilterCriteria | QueryFilterOrCriteria[]): void
getDbgetDb(): I[]
getFieldsgetFields(): undefined | string[]
getFiltergetFilter(): undefined | QueryFilter
getFilterByIdgetFilterById(id: QueryFilterId): undefined | QueryFilterOrCriteria
getItemgetItem(uid: string): undefined | I
getLimitgetLimit(): undefined | number
getOffsetgetOffset(): undefined | number
getParamgetParam(key: string): any
getParamsgetParams(): undefined | AnonymousObject<any>
getQuerygetQuery(): Query
getSearchgetSearch(): undefined | Primitive
getSortgetSort(): undefined | QuerySortDir
getSortBygetSortBy(): QuerySortBy[]
getSortByFieldgetSortByField(field: string): undefined | QuerySortByField
getSortByIdgetSortById(id: string): undefined | QuerySortBy
hasMore
index
initinit(): void
initDbinitDb(dataSource: undefined | string | T[]): void
isFilteredisFiltered(): boolean
items
loadload(limit: number,offset: number,replace: boolean): void
onSubscribeonSubscribe(initialData: undefined | T[],initialUrl: undefined | string,initialQuery: Query): void
queryquery(query: Query): void
refreshrefresh(query: Query,push: boolean,noCache: boolean): void
removeActiveremoveActive<B>(by: B,target: | []): I[]
removeDisabledremoveDisabled<B>(by: B,target: | []): I[]
removeFilterremoveFilter(filterId: QueryFilterId): void
removeHighlightedremoveHighlighted<B>(by: B,target: | []): I[]
removeSelectedremoveSelected<B>(by: B,target: | []): I[]
removeSortByremoveSortBy(id: string): void
resetreset(): void
searchsearch(search: Primitive): void
serializeQueryserializeQuery(query: Query): QuerySerializerResult
setActivesetActive<B>(by: B,target: | []): I[]
setDatasetData(data: T[],query: Query): void
setDisabledsetDisabled<B>(by: B,target: | []): I[]
setFieldssetFields(fields: string[]): void
setHighlightedsetHighlighted<B>(by: B,target: | []): I[]
setMetasetMeta<B,K>(by: B,target: | [],key: K,value: ): I[]
setParamsetParam(key: string,value: any): void
setParamssetParams(params: AnonymousObject<any>): void
setSelectedsetSelected<B>(by: B,target: | []): I[]
setStatussetStatus(status: LoadingStatus): void
setUrlsetUrl(url: string,query: Query): void
sortsort(dir: QuerySortDir): void
sortBysortBy(sortBy: string | QuerySortBy | QuerySortBy[]): void
startAutoRefreshstartAutoRefresh(interval: number): void
startFollowstartFollow(interval: number): void
stateS
status
stopAutoRefreshstopAutoRefresh(): void
stopFollowstopFollow(): void
total
url
Additional properties for advanced use cases
PropertiesTypeDescription
scrollToIndex
scrollToOffset