PopupMenu
<PopupMenu name="k" values="2|3|5|7"> -- the selected entry, and a menu of the rest when clicked: Wolfram's PopupMenu. Arrows step it without opening. Entries are |-separated and may be value -> label. The binding is the entry's value.
Props
| Prop | Type | Default | Notes |
|---|---|---|---|
name | string | "" | The binding this control drives: name="a" fills the wildcard _a.reflects |
values | string | "" | The entries, |-separated, each optionally value -> label. |
value | string | "" | The entry (or, for a multiple selection, the |-separated entries) selected at first. |
As a web component
Plain custom elements, no framework required: import @enumeratio/frontend for the side effect and write <popup-menu-box> in any HTML. Attributes are kebab-case and always strings; the props table above names each one's attribute where it differs from its prop.