@microsoft/fast-foundation > MenuItem
MenuItem class
A Switch Custom HTML Element. Implements ARIA menuitem, ARIA menuitemcheckbox, or ARIA menuitemradio.
checked-indicator - The checked indicator
radio-indicator - The radio indicator
start - Content which can be provided before the menu item content
end - Content which can be provided after the menu item content
- The default slot for menu item content
expand-collapse-indicator - The expand/collapse indicator
submenu - Used to nest menu's within menu items
input-container - The element representing the visual checked or radio indicator
checkbox - The element wrapping the menuitemcheckbox indicator
radio - The element wrapping the menuitemradio indicator
content - The element wrapping the menu item content
expand-collapse-glyph-container - The element wrapping the expand collapse element
expand-collapse - The expand/collapse element
submenu-region - The container for the submenu, used for positioning
expanded-change - Fires a custom 'expanded-change' event when the expanded state changes
change - Fires a custom 'change' event when a non-submenu item with a role of menuitemcheckbox, menuitemradio, or menuitem is invoked
export declare class MenuItem extends FoundationElement
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| checked | boolean | The checked value of the element. | |
| disabled | boolean | The disabled state of the element. | |
| expanded | boolean | The expanded state of the element. | |
| role | MenuItemRole | The role of the element. |