Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface INode

Runtime metadata of a tree node.

Hierarchy

Index

Properties

Optional icon

icon: string | { src: string } | { classes: string[] }

Optional CSS class to be used as an icon. The value can have multiple forms:

  • an object with src property
    • in this case the tree will include an image with the given source URL
  • an object with classes property
    • in this case the tree will add an <i> element with all these CSS classes
  • a string
    • in this case the tree will add an <i> element with this string as a CSS class

id

id: string

Tree node ID. Must be unique within a single tree view.

label

label: string

Tree node label.

level

level: number

Depth in the tree hierarchy.

loading

loading: boolean

Whether the children of this node are currently being loaded.

state

Tree node state. Nodes with state CollapsibleState.None or undefined are considered to be leaves.

Generated using TypeDoc