SiFilterBarComponent documentation¶
import { SiFilterBarComponent } from '@siemens/element-ng/filter-bar'; Input 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}} criteria` | 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¶
import type { BackgroundColorVariant } from '@siemens/element-ng/common';Use this type with filter components colorVariant to render component variants based on background of container
import type { Filter } from '@siemens/element-ng/filter-bar'; -
Short description of filter pill. Can be left empty if title is used to align the title to middle of pill.
-
Identification name of filter pill. Is not shown to the user, please specify either a title or a description.
- deprecated
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.
-
Shown title of filter pill. Can be left empty if description is used.
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.
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.
Except where otherwise noted, content on this site is licensed under MIT License.