Skip to content

SiFilterPillComponent documentation

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

Input Properties

NameTypeDefaultDescription
disabled
boolean false

Whether the pill's delete button is disabled.

filterrequired
Filter

Settings of the filter pill.

totalPills
number 0

Total number of filter pills currently displayed.

Output Properties

NameTypeDescription
deleteFilters
Filter

Emits the filter when its delete button is clicked.

Types Documentation

import type { Filter } from '@siemens/element-ng/filter-bar';
Properties
  • Short description of filter pill. Can be left empty if title is used to align the title to middle of pill.

    description?: TranslatableString

  • Identification name of filter pill. Is not shown to the user, please specify either a title or a description.

    filterName: string

  • 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.

    status?: FilterStatusType

    deprecated
  • Shown title of filter pill. Can be left empty if description is used.

    title?: TranslatableString

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.

FilterStatusType

'default' | 'success' | 'info' | 'warning' | 'danger' | 'inactive'
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.


Except where otherwise noted, content on this site is licensed under MIT License.