Skip to main content

Tree

Function Tree 

Source
pub fn Tree(_: TreeProps) -> Element
Expand description

A tree, its nodes drawn inside it. kind names it and its parts: the tree is the element of class {kind} (marked data-tree), and each node, row and open node’s parts carry {kind}-node, {kind}-item and {kind}-children beside the shared classes. The file browser’s tree is file-tree.

§Props

For details, see the props struct definition.

  • kind : &'staticstr
  • label : &'staticstr

    The tree’s name, for a screen reader.

  • children : Element