Directus / @directus/composables / 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
[]>>