Skip to content

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.

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 selection
msg.options = ['Line 1', 'Line 2']; // replace the options: strings…
msg.options = [{ label: 'Recipe A', value: 101 }, { label: 'Recipe B', value: 102 }]; // …or label/value
msg.ui = { disabled: true }; // lock while a batch runs

msg.options with msg._client changes the list only for that browser and isn’t stored.

When the user picks an option:

{ payload: 101, topic: 'recipe', _client: { id: 'c7f…' } } // the value keeps its type

Only values in the list are ever sent, whatever a browser asks for.