Skip to content

doFolderStateChange Type documentation

TypeScript declaration

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

Changes the folder state to a new state based on the old state. If a client calls this method, the same is responsible to load the children in case the new state is 'expanding'!!!

doFolderStateChange(item: TreeItem<any>, deleteChildrenOnCollapse: boolean, newState?: string): void

Changes the folder state to a new state based on the old state. If a client calls this method, the same is responsible to load the children in case the new state is 'expanding'!!!

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.