DevactionUI.Dropdown (devaction_ui v0.1.0)

Copy Markdown View Source

A button that opens a menu of actions or a choice (sort by deadline, by value, by risk). The menu opens under the button; ↑ ↓ Home End move between items, Enter or Space chooses, Esc closes and returns to the button, a click outside closes it (DevactionUI.Dropdown hook).

An item is a plain action (role="menuitem") or one of a group of choices (checked is not nil, then role="menuitemradio" with a check mark). It sends event with choice, or goes to navigate. A separator puts a rule above the item, and danger colors it as destructive.

Summary

Functions