The Dropdown block allows the user to select an item. But what is an item and how do we define it?
It can be created using a JSON input, and we provide two options:
- a simple array with items
- an array of objects that require the keys label and value
Below we provide two examples.
Edit the text block below (we can make the text editable so the user can change it) and check the dropdown updates live:
Pay attention to the value that you select from the Dropdown and next at its output value which can be used as an input of another block. If the items of the JSON array are Objects, the
label can be selected, and the
value is its corresponding output.
For more details please see the corresponding documentation.