Class: PFDOptMenu
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/PFDOptMenu.ts:10
The PFD Opt softkey menu.
Extends
Constructors
Constructor
new PFDOptMenu(
menuSystem
,publisher
,g1000Publisher
,bus
):PFDOptMenu
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/PFDOptMenu.ts:22
Creates an instance of the PFD Opt softkey menu.
Parameters
Parameter | Type | Description |
---|---|---|
menuSystem | SoftKeyMenuSystem | The menu system. |
publisher | ControlPublisher | A publisher to use for sending control events |
g1000Publisher | G1000ControlPublisher | A G1000 control publisher local to the PFD |
bus | EventBus | is an event bus |
Returns
PFDOptMenu
Overrides
Properties
menuSystem
protected
menuSystem:SoftKeyMenuSystem
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:44
The menu system that will manage this menu.
Inherited from
EmptyMenuItem
static
EmptyMenuItem:MenuItem
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:117
An empty menu item.
Inherited from
Methods
addItem()
addItem(
index
,label
,handler?
,value?
,disabled?
):void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:54
Adds a menu item to the softkey menu.
Parameters
Parameter | 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 ) => 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
forEach()
forEach(
each
):void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:97
Iterates over the menu items.
Parameters
Parameter | Type | Description |
---|---|---|
each | (menuItem , index ) => void | The function to run over each menu item. |
Returns
void
Inherited from
getItem()
getItem(
index
):MenuItem
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:82
Gets a menu item.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The index of the menu item. |
Returns
The requested menu item.
Inherited from
handleBack()
handleBack():
void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:89
Handles a back menu action.
Returns
void
Inherited from
handleItemPressed()
handleItemPressed(
index
):void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:108
Handles when a menu item is pressed.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The index of the menu item that was pressed. |
Returns
void
Inherited from
removeItem()
removeItem(
index
):void
Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyMenu.ts:73
Removes a menu item from the menu.
Parameters
Parameter | Type | Description |
---|---|---|
index | number | The softkey index to remove the menu item from. |
Returns
void