Dropdown box
A dropdown box lets users select an item from a list. This topic explains how to configure this component.
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, enter dropdown box, find the component, and drag it to the canvas.
For more information about adding components, see Add a component.
On the Style tab in the right-hand properties panel, configure the component's position, size, name, opacity, text color, and background color.
Step 2: Configure the data source
In the Style panel on the right, configure the list content options as described in the table below.
|
Parameter |
Description |
|
List content |
Specifies the data source type for the list content.
|
|
Select product |
This item appears when you set List Content to Device. Select the product that contains the target devices. |
|
Default value |
This parameter appears after you configure List content. Use it to set a default value for the dropdown box:
|
Step 3: Configure styles
-
In the Style panel on the right, set the text color and background color of the component.
-
Adjust the position of the component on the page. For more information about common component style settings, see Style Configuration.
Step 4: Configure interactions
-
Select the Interaction tab for the component to configure events and actions. For more information, see Configure Interactions.
For example, when the component's value changes, you can execute the Refresh component action. This lets you refresh another component's content based on the selection in the dropdown box.
-
Click Preview in the upper-right corner of the page to view and debug the component's data and style.