Skip to content

addChildItems Type documentation

TypeScript declaration

import { addChildItems } from '@siemens/element-ng/tree-view';

addChildItems(parent: TreeItem<any>, children: TreeItem<any>[], position?: number, callback?: ((item: TreeItem) => void)): void

Parameters

Types Documentation

import type { TreeItem } from '@siemens/element-ng/tree-view';

Defines the data for a tree item. All properties are optional.

Properties

CheckboxState

'unchecked' | 'checked' | 'indeterminate'
type alias
import type { CheckboxState } from '@siemens/element-ng/tree-view';

The check box state of a tree item.

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.

TreeItemFolderState

'collapsed' | 'expanding' | 'expanded' | 'leaf'
type alias
import type { TreeItemFolderState } from '@siemens/element-ng/tree-view';

The folder state of a tree item.


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