SiSearchBarComponent documentation¶
import { SiSearchBarComponent } from '@siemens/element-ng/search-bar'; Input Properties¶
| Name | Type | Default | Description |
|---|---|---|---|
| clearButtonAriaLabel ¶ | TranslatableString | $localize`:@@SI_SEARCH_BAR.CLEAR_BUTTON:Clear` | Aria label for the clear button. |
| colorVariant ¶ | BackgroundColorVariant | 'base-1' | Color to use for component background |
| debounceTime deprecated ¶ | number | 400 | Time unit change of search input takes effect. Deprecated: Use a content-projected input and debounce its form value changes in application code, for example with RxJS |
| disabled deprecated ¶ | boolean | false | Whether the input is disabled. Deprecated: Use a content-projected input with |
| maxlength deprecated ¶ | number | undefined | Defines the maximum length of the search input. Deprecated: Use a content-projected input with |
| placeholder deprecated ¶ | string | '' | Define search input placeholder. Deprecated: Use a content-projected input with |
| prohibitedCharacters deprecated ¶ | string | undefined | Prohibited characters restricting search. Deprecated: Use a reactive Or with Signal Forms: | |
| readonly deprecated ¶ | boolean | false | Whether the input can be focused but not edited. Deprecated: Use a content-projected input with |
| showIcon ¶ | boolean | false | Display search icon before search input. |
| value deprecated ¶ | string | undefined | Define search input content. Deprecated: Use a content-projected input with |
Output Properties¶
| Name | Type | Description |
|---|---|---|
| searchChange deprecated ¶ | string | Output callback event will provide you with search term if search input changes. Deprecated: Use a content-projected input and observe Or with Signal Forms: |
Types Documentation¶
Use this type with filter components import type { BackgroundColorVariant } from '@siemens/element-ng/common';colorVariant to render component variants based on background of container
Represents a translatable string. This can either be a translation key, e.g. import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';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.
Except where otherwise noted, content on this site is licensed under MIT License.