WarUI

Submenus, Separators, Checkable and Radio Items

GRID-A22-F05P1baselinePlanned

Menu items can contain nested submenus, separators, group labels, checkbox items, and radio groups. Rich menus let applications put settings such as number format, highlighting, or view mode inside one menu without crowding the UI.

Planned. This page shows the specification from issue #202. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A financial grid where the column menu contains a 'Number format' submenu and checkbox items.

Expected behavior

Hovering or pressing ArrowRight opens a submenu next to its parent, flipping to the other side if there is no room. Checking a radio item clears the others in its group. Changing a checkbox updates the cell formatting live.

Planned API surface

MenuItemDef.subMenuMenuItemDef.type: 'separator'|'group'|'checkbox'|'radio'MenuItemDef.checkedMenuItemDef.radioGroupgridOptions.submenuOpenDelayonMenuItemToggle

Acceptance criteria

  • Submenus open after submenuOpenDelay when hovered. (pending)
  • Moving the pointer diagonally toward an open submenu does not close it (safe-triangle behaviour). (pending)
  • Only one radio item per radioGroup can be checked. (pending)
  • Checkbox items toggle without closing the menu by default. (pending)
  • Nesting is supported to at least 3 levels. (pending)