SelectItem Type documentation¶
TypeScript declaration¶
import type { SelectItem } from '@siemens/element-ng/select';Alias for SelectOption or SelectGroup
Types Documentation¶
import type { SelectGroup } from '@siemens/element-ng/select';A select option group
-
An optional key to identify this group in a custom template.
-
A label to be shown as header for this group. Is optional if a custom template is provided.
-
All options that are part of this group.
options:
SelectOption<T>[]¶ -
Defines this to be a group.
import type { SelectOption } from '@siemens/element-ng/select';A select option
-
Whether this option is disabled.
-
An optional icon.
-
The color of an icon.
-
A label to be shown for this option. Is optional if a custom template is provided or if the value should directly be rendered.
-
An optional stacked icon.
-
The color of a stacked icon.
-
Defines this to be an option.
-
Used for typeahead functionality when filtering is disabled. If provided, this will be used, otherwise the innerText of the rendered element.
-
The value if this option. It will be used for formControls and the value property of this
si-select. The value will internally be checked on equality by using===. So an app should either usestringor ensure that same values are referentially equal.
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.