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 |
| debounceTimedeprecated ¶ | 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 |
| disableddeprecated ¶ | boolean | false | Whether the input is disabled. Deprecated: Use a content-projected input with |
| maxlengthdeprecated ¶ | number | undefined | Defines the maximum length of the search input. Deprecated: Use a content-projected input with |
| placeholderdeprecated ¶ | string | '' | Define search input placeholder. Deprecated: Use a content-projected input with |
| prohibitedCharactersdeprecated ¶ | string | undefined | Prohibited characters restricting search. Deprecated: Use a reactive Or with Signal Forms: | |
| readonlydeprecated ¶ | 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. |
| valuedeprecated ¶ | string | undefined | Define search input content. Deprecated: Use a content-projected input with |
Output Properties¶
| Name | Type | Description |
|---|---|---|
| searchChangedeprecated ¶ | 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¶
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 { 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.
Except where otherwise noted, content on this site is licensed under MIT License.