Directus / @directus/extensions-sdk / useFilterFields
Function: useFilterFields() ​
useFilterFields<
T
>(fields
,filters
):object
Type Parameters ​
• T extends string
Parameters ​
• fields: Ref
<Field
[], Field
[]>
• filters: Record
<T
, (field
) => boolean
>
Returns ​
object
fieldGroups ​
fieldGroups:
ComputedRef
<Record
<Extract
<T
,string
>,Field
[]>>
Defined in ​
packages/composables/dist/index.d.ts:45