Dropdown
Lets the operator pick one value from a list. Options are set in the editor (label and a typed value) or sent at runtime in msg.options. Long lists get a search box, and the whole list works with the keyboard.
Long list with search and numeric values
Section titled “Long list with search and numeric values”Properties
Section titled “Properties”| Property | Type | Default | Description |
|---|---|---|---|
label |
string | Select |
Title above the list |
icon |
string | Lucide icon before the label | |
placeholder |
string | Select… |
Shown when nothing is selected |
options |
array | { label, value } items; in the editor each value has a type: text, number or boolean |
|
disabled |
boolean | false |
Set with msg.ui to lock the selection |
Lists with more than 8 options show a search box (matches labels and values, all words).
msg.payload = 'manual'; // select by value (no output unless "Pass input messages through")msg.payload = null; // clear the selectionmsg.options = ['Line 1', 'Line 2']; // replace the options: strings…msg.options = [{ label: 'Recipe A', value: 101 }, { label: 'Recipe B', value: 102 }]; // …or label/valuemsg.ui = { disabled: true }; // lock while a batch runsmsg.options with msg._client changes the list only for that browser and isn’t stored.
Output
Section titled “Output”When the user picks an option:
{ payload: 101, topic: 'recipe', _client: { id: 'c7f…' } } // the value keeps its typeOnly values in the list are ever sent, whatever a browser asks for.