Skip to main content

Interface: ContextMenuItemDefinition

The MenuItemDefinition interface.

Properties

closeAfterAction

Optional closeAfterAction: boolean

Whether the context menu dialog should be closed when the menu item is selected. True by default.

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Dialogs/ContextMenuDialog.tsx:44


estimatedWidth

estimatedWidth: number

The estimated width of the rendered menu item, in pixels.

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Dialogs/ContextMenuDialog.tsx:47


id

Optional id: string

An optional ID to assign to the menu item.

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Dialogs/ContextMenuDialog.tsx:23


isEnabled

Optional isEnabled: boolean

Whether the menu item is enabled. True by default.

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Dialogs/ContextMenuDialog.tsx:32

Methods

onBlurred

onBlurred(): void

The action to execute when this item is blurred.

Returns

void

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Dialogs/ContextMenuDialog.tsx:41


onFocused

onFocused(): void

The action to execute when this item is focused.

Returns

void

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Dialogs/ContextMenuDialog.tsx:38


onSelected

onSelected(): void

The action to execute when this item is selected.

Returns

void

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Dialogs/ContextMenuDialog.tsx:35


renderContent

renderContent(): VNode

Renders the content of the menu item.

Returns

VNode

the rendered content of the menu item as a VNode.

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Dialogs/ContextMenuDialog.tsx:29