Class

AashTreeViewComponent

AashTreeView~AashTreeViewComponent(props)

Generates a tree view.

Constructor

# new AashTreeViewComponent(props)

Parameters:
Name Type Description
props Object

the properties

id string

the id for the enclosing div (optional)

roots Array.<TreeNode>

the top level tree nodes

onToggle ToggleVetoer

an optional vetoer which is invoked before a node is opened or closed

onFocus function

a function ((path: string[]) => void) that is invoked when a node receives the focus (by clicking or by using the navigation keys)

onSelected function

a function ((path: string[], event: Event) => void) that is invoked when a leaf is selected (by clicking on it or pressing space or enter while it has focus)

singlePath Boolean

if true, closes other paths if a new path is opened (closing may be vetoed, however)

View Source components/tree-view/AashTreeView.ts, line 214