Type alias: CollectionBroker<T, M>
Ƭ CollectionBroker<T
, M
>: Object
Type parameters
Name | Type |
---|---|
T | T |
M | extends ItemMeta |
Type declaration
Name | Type |
---|---|
addFilter | (filterOrCriteria : QueryFilterOrCriteria , parentFilterId? : QueryFilterId ) => void |
addFilterCriteria | (field : string , operator : QueryFilterCriteriaOperator , value : QueryFilterCriteriaValue | QueryFilterCriteriaValue [], not? : boolean , id? : QueryFilterId , parentFilterId? : QueryFilterId ) => void |
addSortBy | (sortBy : QuerySortBy , prepend? : boolean ) => void |
addSubscriber | (collection : Collection <T , M >) => void |
clearFields | () => void |
clearFilter | () => void |
clearParam | (key : string ) => void |
clearParams | () => void |
clearSearch | () => void |
clearSort | () => void |
clearSortBy | () => void |
filter | (filter : null | QueryFilter | QueryFilterCriteria | QueryFilterOrCriteria []) => void |
removeFilter | (filterId : QueryFilterId ) => void |
removeSortBy | (id : string ) => void |
removeSubscriber | (collection : Collection <T , M >) => void |
search | (search : Primitive ) => void |
setData | (data : T []) => void |
setFields | (fields : string []) => void |
setParam | (key : string , value : any ) => void |
setParams | (params : AnonymousObject <any >) => void |
sort | (dir : QuerySortDir ) => void |
sortBy | (sortBy : string | QuerySortBy | QuerySortBy []) => void |
Defined in
onekijs/packages/onekijs-framework/src/collection/typings.ts:37