Tree

It is a hierarchical dropdown list, that organizes the data into parent-child format and presents it in a tree-branch view.

Basic

Tree Data

The JSON-formatted data that is served as the content of the widget. The format must depict the parent-child link among the values, allowing the widget to display in a tree format. The properties of the JSON content as below.

[
  {
    "label": "Asia",
    "value": "asia",
    "children": [
      {
        "label": "China",
        "value": "china",
        "children": [
          {
            "label": "Beijing",
            "value": "beijing"
          },
          {
            "label": "Shanghai",
            "value": "shanghai"
          }
        ]
      },
      {
        "label": "Japan",
        "value": "japan"
      }
    ]
  },
  {
    "label": "Europe",
    "value": "europe",
    "disabled": true,
    "children": [
      {
        "label": "England",
        "value": "england"
      },
      {
        "label": "France",
        "value": "france",
        "checkable": false
      },
      {
        "label": "Germany",
        "value": "germany",
        "disableCheckbox": true
      }
    ]
  },
  {
    "label": "North America",
    "value": "northAmerica"
  }
]

Validation

Required Field

Refers to the field that must be completed by the user, which means the field must be entered with a valid value before submitting the information.

Custom Rule

Apart from validating the entry using the regex rule, users can also use this property to write low-code and check other aspects. For example - check if the city selected in the previous field matches the desired value, throw a custom message to the user even before capturing the entry on this field.

Interaction

Event Handlers

Hide

This sets whether the widget has to be displayed on the screen when the program is loaded. This shows/hides the widget both on desktop and mobile devices.

Disabled

Disables the user interaction with the element on the page. It visually indicates that the element is inactive and prevents users from interacting with it when applied. Shows a red-crossed warning symbol and can be customized to disable the widget according to certain conditions using low-code.

Select Type

Layout

Expanded Values

Provide the JSON array of parent-child nodes which the user wants to display the nodes as the expanded list by default.

Default Expand All Nodes

Toggle this to make all the nodes on the list to be displayed as the expanded list of tree.

Show Line

This creates a line-link among the nodes, showing the parent-child relation explicitly.

Show Leaf Icon

Inserts a leaf icon in front of every last child node, making a difference in their appearance.

Widget Tooltip

This tooltip pops up when the user moves the mouse over the input area of the widget. It is commonly used to hint at the type of input the user needs to provide.

The tooltip will be immediately shown when the user's mouse hovers over the widget, and immediately hides when the user's mouse leaves. This information will be contextual, useful, and informative.

Label

Represents the caption for the widget in the user interface. It is recommended to keep the label string short and convey the usage of the widget in the UI

Tooltip

This tooltip pops up when the user moves the mouse over the label area of the widget. This is commonly used to provide some extra or important information to the user on the usage of the widget.

The tooltip will be immediately shown when the user's mouse hovers over the widget, and immediately hides when the user's mouse leaves. This information will be contextual, useful, and informative.

Position

Alignment

Style

Last updated