<dropdown>
A Material dropdown menu: a field that opens a list of choices; the chosen value is readable by id.
<column style="gap-12">
<dropdown id="size"
label="Size">
<menu-item value="s">Small</menu-item>
<menu-item value="m">Medium</menu-item>
<menu-item value="l">Large</menu-item>
</dropdown>
</column>
Attributes
| Name | What it does | Default |
|---|---|---|
expanded |
Fill the available width. boolean |
false |
label |
Dropdown label. string |
Readings
| Name | What it does |
|---|---|
index |
The chosen item's position, from 0; -1 when none. |
label |
The chosen item's text; empty when none. |
value |
The chosen item's value; empty when none. |
Any tag also takes gestures: @on.tap, @on.longpress, @on.doubletap and @on.swipeleft (and right, up and down). @click runs on a tap too.