Skip to main content

Dropdown

This node places a dropdown input field in the visual tree. The input can for example be used to capture information from a user.

The dropdown takes an array of options as an input, which will be shown in the dropdown for the user to pick from.

The Incoming Items Format

The incoming items should be an Array of Objects, for example coming from a Static Array, Query Records or a Function node.

The Object should have two mandatory properties: Label, Value (note that the case matters, value would not work). The Label property should contain the string to be shown in the Dropdown. The Value property will be set on the output Value on the Dropdown.

Depending on how your original data looks, it may be necessary to use the Array Map node to re-map values in the original data towards Label and Value. One useful pattern is to map the id of an Object to the Value property in the Array Map to easily access the selected Object. The mapping can be achieved through Value: function (object) { return object.id }.

Inputs

DataDescription
ItemsThis input takes an Array of Objects that will populate the Dropdown. You should make sure that they have the two properties Label and Value set as they are used to represent the item in the Dropdown.
ValueSetting this input will force the Dropdown to select the item with the same value set in its Value property.
PlaceholderThe placeholder text for when the dropdown is empty.
Placeholder OpacityThe opacity of the placeholder text. 0 is completely transparent and invisible. 1 is completely solid and opaque.

User interaction can be enabled and disabled:

@include "../../shared-props/inputs/_enabled.md"

Visual

This node supports the following Visual Input Properties:

Outputs

The main output is the following:

DataDescription
ValueThis output holds the value, i.e. what is in the property Value in the currently selected Object in the Dropdown.
SignalDescription
ChangedThis signal signal is emitted when the selection of the Dropdown changes.

It also features a set of more in depth signals:

@include "../../shared-props/outputs/_control-events.md"

States

Apart from triggering signals the Dropdown node also notifies of its state through data outputs:

@include "../../shared-props/outputs/_control-states.md"

Visual

This node supports the following Visual Output Properties:

@include "../../shared-props/inputs/_visual-input-properties.md"

@include "../../shared-props/outputs/_visual-output-properties.md"