# SiFilterBarComponent documentation

**Kind:** component

**Selector:** `si-filter-bar`

```
import { SiFilterBarComponent } from '@siemens/element-ng/filter-bar';
```

```
component SiFilterBarComponent
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [allowReset](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/si-filter-bar.component.ts#L75-L75>) | `boolean` | `true` | Set false to hide reset filters button |
| [collapsedFiltersDescription](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/si-filter-bar.component.ts#L97-L99>) | `TranslatableString` | `` $localize`:@@SI_FILTER_BAR.COLLAPSED_FILTERS_DESCRIPTION:+ {{count}} criteria` `` | Custom text for the collapsed filters. |
| [colorVariant](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/si-filter-bar.component.ts#L81-L81>) | `BackgroundColorVariant` | `'base-1'` | Color to use for component background |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/si-filter-bar.component.ts#L88-L88>) | `boolean` | `false` | Set to true to disable component |
| [filterDefaultText](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/si-filter-bar.component.ts#L52-L54>) | `TranslatableString` | `` $localize`:@@SI_FILTER_BAR.NO_FILTERS:No filters applied` `` | Custom text if no filters are selected. |
| [filters](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/si-filter-bar.component.ts#L60-L60>) | `Filter[]` | `[]` | Array of filter items to show |
| [resetText](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/si-filter-bar.component.ts#L69-L69>) | `TranslatableString` | `` $localize`:@@SI_FILTER_BAR.RESET_FILTERS:Reset filters` `` | Text for reset button |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [filtersChange](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/si-filter-bar.component.ts#L60-L60>) | `Filter[]` | Array of filter items to show |
| [resetFilters](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/si-filter-bar.component.ts#L104-L104>) | `void` | Output callback to be executed when the reset filter is clicked |

### Types Documentation

### [BackgroundColorVariant](<https://github.com/siemens/element/blob/main/projects/element-ng/common/models/color-variant.model.ts#L8-L8>)

**Kind:** type alias

```
import type { BackgroundColorVariant } from '@siemens/element-ng/common';
```

Use this type with filter components `colorVariant` to render component variants based on background of container

```
type BackgroundColorVariant = 'base-1' | 'base-0'
```

### [Filter](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/filter.ts#L14-L36>)

**Kind:** interface

```
import type { Filter } from '@siemens/element-ng/filter-bar';
```

```
interface Filter
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [description](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/filter.ts#L29-L29>) (optional) | `TranslatableString` | Short description of filter pill. Can be left empty if [title](<index.html#t:Filter.title>) is used to align the title to middle of pill. |
| [filterName](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/filter.ts#L19-L19>) | `string` | Identification name of filter pill. Is not shown to the user, please specify either a [title](<index.html#t:Filter.title>) or a [description](<index.html#t:Filter.description>). |
| [status](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/filter.ts#L35-L35>) (optional, deprecated) | `FilterStatusType` | Deprecated: The status property has been deprecated as it no longer has any visual effect on filter pills. This property will be removed in the next major version. Please remove this property from your Filter objects as it is now ignored by the filter component. |
| [title](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/filter.ts#L24-L24>) (optional) | `TranslatableString` | Shown title of filter pill. Can be left empty if [description](<index.html#t:Filter.description>) is used. |

### [TranslatableString](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/translate-types/global.types.ts#L18-L18>)

**Kind:** type alias

```
import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';
```

Represents a translatable string. This can either be a translation key, e.g. `ACTIONS.EDIT` that will be automatically translated when displayed on the UI or a pre-translated string, e.g. `Edit`. Equivalent to a normal string in usage and functionality.

```
type TranslatableString = string & Translatable
```

### [FilterStatusType](<https://github.com/siemens/element/blob/main/projects/element-ng/filter-bar/filter.ts#L12-L12>)

**Kind:** type alias

```
import type { FilterStatusType } from '@siemens/element-ng/filter-bar';
```

Deprecated: FilterStatusType has been deprecated as it no longer has any visual effect on filter pills. This type will be removed in the next major version. Please remove any usage of the `status` property from your Filter objects as it is now ignored by the component.

```
type FilterStatusType = 'default' | 'success' | 'info' | 'warning' | 'danger' | 'inactive'
```
