SiFilterBarComponent documentation¶
selector
si-filter-barInput Properties¶
| Name | Type | Default | Description |
|---|---|---|---|
| allowReset ¶ | boolean | true | Set false to hide reset filters button |
| collapsedFiltersDescription ¶ | TranslatableString | $localize`:@@SI_FILTER_BAR.COLLAPSED_FILTERS_DESCRIPTION:+ {{count}} filters` | Custom text for the collapsed filters. |
| colorVariant ¶ | BackgroundColorVariant | 'base-1' | Color to use for component background |
| disabled ¶ | boolean | false | Set to true to disable component |
| filterDefaultText ¶ | TranslatableString | $localize`:@@SI_FILTER_BAR.NO_FILTERS:No filters applied` | Custom text if no filters are selected. |
| filters ¶ | Filter[] | [] | Array of filter items to show |
| resetText ¶ | TranslatableString | $localize`:@@SI_FILTER_BAR.RESET_FILTERS:Reset filters` | Text for reset button |
Output Properties¶
| Name | Type | Description |
|---|---|---|
| filtersChange ¶ | Filter[] | Array of filter items to show |
| resetFilters ¶ | void | Output callback to be executed when the reset filter is clicked |
Types Documentation¶
| 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. |
|---|
| Use this type with filter components colorVariant to render component variants based on background of container |
|---|
|
Translatable import imported from @siemens/element-translate-ng |
|---|
| Copyright (c) Siemens 2016 - 2025 SPDX-License-Identifier: MIT |
|---|
Except where otherwise noted, content on this site is licensed under MIT License.