Interface: ContextMenuItemDefinition
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Dialogs/ContextMenuDialog.tsx:21
The MenuItemDefinition interface.
Properties
closeAfterAction?
optional
closeAfterAction:boolean
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Dialogs/ContextMenuDialog.tsx:44
Whether the context menu dialog should be closed when the menu item is selected. True by default.
estimatedWidth
estimatedWidth:
number
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Dialogs/ContextMenuDialog.tsx:47
The estimated width of the rendered menu item, in pixels.
id?
optional
id:string
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Dialogs/ContextMenuDialog.tsx:23
An optional ID to assign to the menu item.
isEnabled?
optional
isEnabled:boolean
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Dialogs/ContextMenuDialog.tsx:32
Whether the menu item is enabled. True by default.
Methods
onBlurred()?
optional
onBlurred():void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Dialogs/ContextMenuDialog.tsx:41
The action to execute when this item is blurred.
Returns
void
onFocused()?
optional
onFocused():void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Dialogs/ContextMenuDialog.tsx:38
The action to execute when this item is focused.
Returns
void
onSelected()?
optional
onSelected():void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Dialogs/ContextMenuDialog.tsx:35
The action to execute when this item is selected.
Returns
void
renderContent()
renderContent():
VNode
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Dialogs/ContextMenuDialog.tsx:29
Renders the content of the menu item.
Returns
VNode
the rendered content of the menu item as a VNode.