Tree control
更新时间:
复制 MD 格式
This component displays hierarchical data in a tree structure, such as folders, organizational charts, biological taxonomy, and countries or regions. It supports expanding, collapsing, and selecting nodes. This document shows you how to configure the component.
Example
Select an item from the tree.
Step 1: Add the component
-
Create a web application. For more information, see Create a web application.
-
In the web application editor, click the component icon
on the far left. - Above the component list on the left of the canvas, enter tree control to find the component, then drag it to the canvas.
For more information about adding components, see Add a component.
Step 2: Configure the data source
- In the style panel on the right, click data source and then click Configure Data Source.
- On the Configure Data Source page, select a data source type and complete the configuration.
- Click OK.
Step 3: Configure styles
- On the style tab on the right, configure the component's display settings.
Parameter Description Tree control configuration Specifies whether to show lines and expand all nodes. Both are selected by default. Tree control style Sets the background color of the component. -
Adjust the component's position on the page. For more information about general component style settings, see Configure styles.
Step 4: Configure actions
- InteractionOn the tab, configure events and actions. For more information, see Interaction configuration.
ClickThis component supports the event. When you select an item's label, the component's value becomes the corresponding value.
-
Click Preview in the upper-right corner of the page to view and debug the component's data and style.
该文章对您有帮助吗?