Skip to main content

Interface: MenuItemDefinition

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Dialogs/PopoutMenuItem.tsx:9

The MenuItemDefinition interface.

Properties​

closeAfterAction?​

optional closeAfterAction: boolean

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Dialogs/PopoutMenuItem.tsx:23

if the dialog should be closed after this menu item is selected (default:true)


id​

id: string

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Dialogs/PopoutMenuItem.tsx:11

menu item ID


isEnabled?​

optional isEnabled: boolean

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Dialogs/PopoutMenuItem.tsx:20

menu item enabled/disabled bool

Methods​

action()?​

optional action(): void

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Dialogs/PopoutMenuItem.tsx:26

The action to execute when this item is selected.

Returns​

void


renderContent()​

renderContent(): VNode

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Dialogs/PopoutMenuItem.tsx:17

Renders the content of the menu item.

Returns​

VNode

the rendered content of the menu item as a VNode.