Logo

SubMenuItem

SubMenuItem creates hierarchical menu structures by acting as both a menu item and a container for nested menu items. When clicked or hovered, it reveals a submenu containing additional MenuItem, MenuSeparator, or other SubMenuItem components, enabling complex multi-level navigation and action organization.
Key features:
  • Hierarchical nesting: Creates multi-level menu structures within DropdownMenu components
  • Dual functionality: Acts as both a clickable menu item and a container for other menu components
  • Custom triggers: Configurable trigger appearance via triggerTemplate property
  • Progressive disclosure: Reveals nested options on hover or click interaction
  • Unlimited depth: Supports multiple levels of nesting for complex menu hierarchies

Properties

label

This property sets the label of the component. If not set, the component will not display a label.

triggerTemplate

This property allows you to define a custom trigger instead of the default one provided by SubMenuItem.

Events

This component does not have any events.

Exposed Methods

This component does not expose any methods.

Styling

This component does not have any styles.
This site is an XMLUI™ app.