@empathyco/x-components
Version:
Empathy X Components
28 lines (21 loc) • 1.26 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [ExcludeFiltersWithNoResults](./x-components.excludefilterswithnoresults.md)
## ExcludeFiltersWithNoResults variable
The `ExcludeFiltersWithNoResults` component filters the provided list of filters, excluding those which have the `totalResults` property exactly equal to `0`<!-- -->. It won't remove filters with no `totalResults` property.
The new list of filters is bound to the default scoped slot. As this component does not render no root element, this default slot must contain a single root node.
**Signature:**
```typescript
_default: import("vue").DefineComponent<{
filters: PropType<Filter[]>;
parentId: {
type: PropType<Filter["id"]>;
};
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}> | "", unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
filters: PropType<Filter[]>;
parentId: {
type: PropType<Filter["id"]>;
};
}>>, {}, {}>
```