@empathyco/x-components
Version:
Empathy X Components
60 lines (30 loc) • 885 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [useFiltersInjection](./x-components.usefiltersinjection.md)
## useFiltersInjection() function
Composable to share filters injection logic.
**Signature:**
```typescript
export declare function useFiltersInjection(props: {
filters?: Filter[];
parentId?: Filter['id'];
}): import("vue").ComputedRef<Filter[]>;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
props
</td><td>
{ filters?: Filter\[\]; parentId?: Filter\['id'\]; }
</td><td>
Composable props.
</td></tr>
</tbody></table>
**Returns:**
import("vue").ComputedRef<Filter\[\]>
An array of filters.