Function: useCollection
▸ Const
useCollection<T
, M
>(dataSource
, options?
): Collection
<T
, M
>
Type parameters
Name | Type |
---|---|
T | any |
M | extends ItemMeta ItemMeta |
Parameters
Name | Type |
---|---|
dataSource | string | Collection <T , M > | T [] |
options | UseCollectionOptions <T , M > |
Returns
Collection
<T
, M
>
Defined in
onekijs/packages/onekijs-framework/src/collection/useCollection.ts:52