MenuItemGroup

The MenuItemGroup component represents a group of menu items.

NOTE

This component is supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.

Child Components

This component contains the MenuItem child component.

APIs

MenuItemGroup(value?: MenuItemGroupOptions)

Atomic service API: This API can be used in atomic services since API version 11.

System capability: SystemCapability.ArkUI.ArkUI.Full

Parameters

Name Type Mandatory Description
value MenuItemGroupOptions No Header and footer of the menu item group.

Describes the header and footer of the menu item group.

Atomic service API: This API can be used in atomic services since API version 11.

System capability: SystemCapability.ArkUI.ArkUI.Full

Name Type Read-Only Optional Description
header ResourceStr | CustomBuilder No Yes Header of the menu item group.
footer ResourceStr | CustomBuilder No Yes Footer of the menu item group.

Sample

For details, see Example in Menu.