Class: SystemMenu
The MFD Engine system menu.
Hierarchy
↳
SystemMenu
Constructors
constructor
• new SystemMenu(menuSystem
, config
, publisher
): SystemMenu
Creates an instance of the MFD engine lean menu.
Parameters
Name | Type | Description |
---|---|---|
menuSystem | SoftKeyMenuSystem | The engine lean menu system. |
config | XMLExtendedGaugeConfig | The EIS gauge configuration. |
publisher | G1000ControlPublisher | A publisher to use for sending control events |
Returns
Overrides
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/MFD/SystemMenu.ts:20
Properties
menuSystem
• Protected
menuSystem: SoftKeyMenuSystem
The menu system that will manage this menu.
Inherited from
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:44
EmptyMenuItem
▪ Static
EmptyMenuItem: MenuItem
An empty menu item.
Inherited from
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:117
Methods
addItem
▸ addItem(index
, label
, handler?
, value?
, disabled?
): void
Adds a menu item to the softkey menu.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
index | number | undefined | The softkey index to add the menu item to. |
label | string | undefined | The label of the menu item. |
handler? | (menu : SoftKeyMenu ) => void | undefined | The handler to call when the menu item is selected. |
value? | string | boolean | undefined | The value of the menu item, if any. |
disabled | boolean | false | Whether or not the menu item is disabled. |
Returns
void
Inherited from
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:54
forEach
▸ forEach(each
): void
Iterates over the menu items.
Parameters
Name | Type | Description |
---|---|---|
each | (menuItem : MenuItem , index : number ) => void | The function to run over each menu item. |
Returns
void
Inherited from
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:97
getItem
▸ getItem(index
): MenuItem
Gets a menu item.
Parameters
Name | Type | Description |
---|---|---|
index | number | The index of the menu item. |
Returns
The requested menu item.
Inherited from
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:82
handleBack
▸ handleBack(): void
Handles a back menu action.
Returns
void
Inherited from
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:89
handleItemPressed
▸ handleItemPressed(index
): void
Handles when a menu item is pressed.
Parameters
Name | Type | Description |
---|---|---|
index | number | The index of the menu item that was pressed. |
Returns
void
Inherited from
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:108
removeItem
▸ removeItem(index
): void
Removes a menu item from the menu.
Parameters
Name | Type | Description |
---|---|---|
index | number | The softkey index to remove the menu item from. |
Returns
void
Inherited from
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:73