Skip to content

Tree View

The tree view is a component for displaying a hierarchy. Actions can be performed when elements in each hierarchy are clicked.

Property

NoItemInput ValueDefault ValueAction PropertyTypeAction Default ValueDescription
1IDStringAuto-generatedidstringAuto-generatedThe [id] property cannot be set by actions.
2WidthNumber222widthnumber222Component width
3HeightNumber230heightnumber230Component height
4XNumberxnumberX coordinate position
5YNumberynumberY coordinate position
6ColorString
Color Picker
colorstringTree view color
7Font SizeNumber16fontSizenumber16Font size
8VisibilityBooleanONvisibilitybooleantrueComponent show/hide
9ValueTable
[Details 1]
[Details 1]valuearray of object[Details 1]Tree view value
10Click EventSelection
1. None
2. Action
NoneClick event

[Details 1] Value (value)

[{
"id": "root",
"label": "Parent",
"children": [
{
"id": "1",
"label": "Child - 1"
},
{
"id": "2",
"label": "Child - 2",
"children": [
{
"id": "2a",
"label": "Child - 2-A"
}
]
}
]
}]

Event

Event nameDescription
onclickPerforms an action when clicked.

The "selected" property allows you to retrieve the object array containing the child elements of the element you clicked on.

ProjectExample
Obtaining Method$ui.tree_view_id.selected
Obtained Value{“id”:“2”,“label”:“Child - 2”,“children”:[{“id”:“2a”,“label”:“Child - 2-A”}]}