A tree-select widget captures user inputs from a specified list of permitted options in which each option can then have child options associated with it.
Properties allow you to edit the widget, connect it with other widgets and customize the user actions.
These properties allow you to edit the widget. All these properties are present in the property pane of the widget. The following table lists all the widget properties.
It lets you set labels and values for different items/options in the list of the tree select widget. Options must be specified as an array of objects with a label and value property. The tree structure can be added to any option by adding the children field that should be an object.
Sets a default option that will be captured as user input unless the user changes it.
Sets the Placeholder of the multi-select widget.
When turned on, it makes a user input required and disables any form submission until the user makes an input.
Controls widget's visibility on the page. When turned off, the widget will not be visible when the app is published
Disables input/selection to the widget. The widget will remain visible to the user but user input/selection will not be allowed.
Control’s widget’s loading animation on the page. When turned off, the widget will load without any skeletal animation. This can be controlled with JS until all the widgets are rendered.
Clear all Selections
When turned on, it allows users to clear the selection, which was the default or the selection made by them.
Expand all by default
It shows a dropdown in an expanded state when turned on, revealing all the children options.
These properties help you share values between widgets and also allow you to easily access the widget property within Queries or JS functions.
This is the value of the option displayed in a Single Select dropdown. It changes if the default value of the dropdown changes or the user selects an option.
This is the Label of the option displayed in a Tree-Select dropdown. This label changes if the default value of the dropdown changes or the user changes an option selection.
This property indicates whether the widget is disabled or not.
This property indicates whether the widget is valid or not.
This property indicates whether the widget is visible or not.
They are a set of actions that you can perform on the widget. The following table lists the actions:
The property hosts a group of configurations that you can use to associate a display name and define a placement for the widget. These properties are usually useful when you want to design forms that follow a defined alignment for your form fields and give a professional look to your forms. Below are the properties that you can use:
Sets the label of the widget.
Sets the label position of the widget.
Sets the label alignment of the widget.
Sets the label width of the widget as the number of columns.
Let's understand these properties in detail.
It allows you to set the display name for the Tree-select. For example, if you want the user to select a category and its subcategories of fruits, you can enter the text as "Fruits."
You can leave the text empty if you don't want any display name for your Tree-select widget.
It allows you to specify the placement of the label. You can select one of the available options:
Top - It allows you to align the text at the top of the Tree-select.
Left - It aligns the text to the left of the Tree-select. When you select Left alignment, you get additional settings that you can use to control the alignment and define the text's width.
Alignment - With the help of alignment, you can define the placement of the text in accordance with the position of the Tree-select. You can choose:
Left - It aligns the text to the widget's left boundary that is away from the Tree-select.
Right - It aligns the text closer to the Tree-select.
Width - With the help of width, you can define the number of columns in the grid that surrounds the widget. You can specify how close or far the text can be placed to the Tree-select.
Auto - It automatically adjusts the position of the text based on the Tree-select's height.
Columns are the dashed lines (-----) that surround a widget when you try to drag and drop it on the canvas.
How to set the label properties?
Style properties allow you to change the look and feel of the widget.
Allows you to define curved corners.
Allows you to choose from the available shadow styles.
Label Font Style
Allows you to choose a font style, i.e., bold or italic.