expand Type documentation¶
TypeScript declaration¶
Types Documentation¶
Defines the data for a tree item. All properties are optional. Indicates if the item is active, the last clicked item is active always; only one item can be active. Defines the content of the optional badge. Should be a number or something like "100+". If undefined or empty string, no badge is displayed. Defines the background color of the badge. Use the status color names as inputs. See: https://element.siemens.io/components/status-notifications/badges/ badgeColor ? : The state of the checkbox/optionbox. checked ? : The child tree items. Any custom data that can be used in custom templates. Not shown by default. customData ? : The text shown for the tree item data field 1. The text shown for the tree item data field 2. The web font icon class name (e.g. element-building). The icon is shown on the left (in LTR) side of the label. The text shown for the tree item label (header). label ? : The hierarchy level of the node. This will be auto-calculated by the tree view control. The parent tree item. This will be automatically set by the tree view control. Indicates if the tree item is selectable or not. selectable ? : If the item is selected (note that the tree view component supports single and multi-selection). If the tree item shall show a checkbox. showCheckbox ? : If the tree item shall show an optionbox. showOptionbox ? : The folder state of the tree item. The color of the state pipe; formatted as CSS value ('red' or '#FF0000' or 'rgb(255, 0, 0)'). The name of the template to apply. templateName ? : import type { TreeItem } from '@siemens/element-ng/tree-view';
string ¶ CheckboxState ¶ T ¶ TranslatableString ¶ boolean ¶ boolean ¶ boolean ¶ string ¶
The check box state of a tree item.import type { CheckboxState } from '@siemens/element-ng/tree-view';
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.
The folder state of a tree item.import type { TreeItemFolderState } from '@siemens/element-ng/tree-view';
Except where otherwise noted, content on this site is licensed under MIT License.