Skip to main content
Version: 1.0.4

Dropdown

A selection field. Its value is bindable, which is what makes it the usual driver of a screen: a dropdown selecting a line, with charts and detail panels bound to its value.

The Dropdown component as it renders with its default settings.The Dropdown component as it renders with its default settings.

Reach for it when you need:

  • Choosing which line or equipment the screen shows
  • A field inside a Form

Component name: Dropdown · Category: Input

In the palette: Dropdown selection field

Properties

Any property can be bound to a tag, another component's property, or a query.

PropertyTypeDefaultDescription
valueunion""
labelValueunion""
optionsarray[{"label":"Option 1","value":1},{"label":"Option 2","value":… (truncated)
placeholderstringSelect...
titlestringSelect Option
showTitlebooleantrue
titleSizenumber13
multiplebooleanfalse
showClearbooleantrue
shadowbooleantrueShow a subtle drop-shadow on the dropdown trigger. Turn off for a flat look.
disabledbooleanfalse
dropdownWidthstring""Width of the dropdown panel (e.g. 300, '400px'). Defaults to trigger width.
dropdownHeightstring""Max height of the dropdown panel (e.g. 300, '400px'). Defaults to 250px.
stylestyle{}Custom CSS properties

Events

Attach event actions to these in the Event Manager.

EventLabelGroupPayload
clickClickMouseThe DOM event.
dblclickDouble clickMouseThe DOM event.
contextmenuRight clickMouseThe DOM event.
mouseenterMouse enterMouseThe DOM event.
mouseleaveMouse leaveMouseThe DOM event.
changeChangeInputThe DOM event.
submitSubmitInputThe DOM event.
focusFocusInputThe DOM event.
blurBlurInputThe DOM event.
Right-click behaves differently in the Designer

contextmenu fires your configured actions at runtime only — in LiveView and in preview. On the Designer canvas the right-click is captured to open the Event Manager, so testing it there will not run your actions. Test right-click in preview.

Notes

Bind other components to this one with a property binding and the screen becomes interactive with no script at all.