Skip to content

GanttHierarchyOptions

Defined in: core/src/facade/types.ts:71

The hierarchy options: the task tree’s data options and the expanded parents.

readonly optional childAnchor?: LinkType | readonly LinkType[]

Defined in: core/src/facade/types.ts:84

Default Task.parentAnchor; default 'SS'.


readonly optional expandedKeys?: StoreExpandedKeys

Defined in: core/src/facade/types.ts:82

The expanded parents: 'all' (default) or their ids. Setting it replaces the expanded state (a controlled expandedKeys); expand / collapse change it from inside. Ids of tasks without children are allowed and have no effect; unknown ids are ignored.

setOptions compares the value with the one it was given last time, not with the current expanded state: the same array (or 'all' again) does nothing, also after expand or collapse changed the state since, and a new array replaces the state. Setting it never fires expandedChange; only changes from inside do.


readonly optional moveChildren?: MoveChildren

Defined in: core/src/facade/types.ts:86

Which children move with their parent; default 'all'.