Skip to main content
Version: 2.11

Create Tree Item

Helper that helps to build the JSON for Tree View

Description

Helper that helps to build the JSON that has be inserted in the Tree View Component.

The rank is supposed to contains numbers separated by dots (e.g. 1.1.2). Root level is supposed to be a single number (e.g. 1, 2, 3, ...), sub-levels are nested like 1.1, 1.2, 1.2.1, 1.2.2, ...)

Inputs

  • Tree (String): A tree item to receive an existing tree item and add more data onto it. Left empty, it will simply create a new tree item.
  • Rank (String): Determine the position of the element in the tree
  • Label (String): The name displayed in the tree
  • Data (String): Some reference that you can get when you click an item (can be a primitive or json)
  • Collapse icon (String): Different icons can be used. Select from <a href="https://fontawesome.com/v5.15/icons?d=gallery&amp;p=2&amp;m=free" target="_blank">Font Awesome Icons</a>
  • Expand icon (String): Different icons can be used. Select from <a href="https://fontawesome.com/v5.15/icons?d=gallery&amp;p=2&amp;m=free" target="_blank">Font Awesome Icons</a>

Outputs

  • Tree (Object): The tree item with the data added