Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IItem

User-defined tree node data.

Hierarchy

Index

Properties

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.

Optional state

Tree node state. Nodes with state CollapsibleState.None or undefined are considered to have no children.

Generated using TypeDoc