harmony 鸿蒙MenuItemGroup

  • 2023-06-24
  • 浏览 (667)

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)

Parameters

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

MenuItemGroupOptions

Name Type Mandatory Description
header ResourceStr |CustomBuilder No Header of the menu item group.
footer ResourceStr |CustomBuilder No Footer of the menu item group.

Sample

For details, see Example in Menu.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkTS-based Declarative Development Paradigm

harmony 鸿蒙@ohos.multimedia.avCastPicker (AVCastPicker)

harmony 鸿蒙Property Animation

harmony 鸿蒙Enums

harmony 鸿蒙Blank

harmony 鸿蒙Button

harmony 鸿蒙CalendarPicker

harmony 鸿蒙Checkbox

harmony 鸿蒙CheckboxGroup

harmony 鸿蒙DataPanel

0  赞