Class: AdcSettingsSoftKeyMenu
Defined in: workingtitle-instruments-g3000/html_ui/PFD/SoftKey/AdcSettingsSoftKeyMenu.ts:8
The ADC settings softkey menu.
Extends
Constructors
Constructor
new AdcSettingsSoftKeyMenu(
menuSystem,pfdIndex,adcCount,sensorsSettingManager,isSplit):AdcSettingsSoftKeyMenu
Defined in: workingtitle-instruments-g3000/html_ui/PFD/SoftKey/AdcSettingsSoftKeyMenu.ts:19
Creates an instance of the ADC settings softkey menu.
Parameters
| Parameter | Type | Description |
|---|---|---|
menuSystem | SoftKeyMenuSystem | The softkey menu system. |
pfdIndex | PfdIndex | The index of the menu's parent PFD. |
adcCount | number | The number of ADC systems supported. Only the first 4 systems will be selectable. |
sensorsSettingManager | UserSettingManager<PfdSensorsUserSettingTypes> | A manager for sensor settings for this menu's PFD. |
isSplit | boolean | Whether the menu is a split-mode menu. |
Returns
AdcSettingsSoftKeyMenu
Overrides
Properties
menuSystem
protectedmenuSystem:SoftKeyMenuSystem
Defined in: garminsdk/softkey/SoftKeyMenu.ts:45
The menu system that will manage this menu.
Inherited from
SOFTKEY_COUNT
readonlystaticSOFTKEY_COUNT:12=12
Defined in: garminsdk/softkey/SoftKeyMenu.ts:36
The number of softkeys in each menu.
Inherited from
Methods
addItem()
addItem(
index,label,handler?,value?,disabled?):SoftKeyMenuItem
Defined in: garminsdk/softkey/SoftKeyMenu.ts:57
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. Must be between 0 and 11, inclusive. |
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
The new menu item.
Throws
Error if index is out of bounds.
Inherited from
destroy()
destroy():
void
Defined in: workingtitle-instruments-g3000/html_ui/PFD/SoftKey/AdcSettingsSoftKeyMenu.ts:50
Destroys this menu.
Returns
void
Overrides
forEach()
forEach(
each):void
Defined in: garminsdk/softkey/SoftKeyMenu.ts:116
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):null|SoftKeyMenuItem
Defined in: garminsdk/softkey/SoftKeyMenu.ts:97
Gets a menu item.
Parameters
| Parameter | Type | Description |
|---|---|---|
index | number | The index of the menu item. Must be between 0 and 11, inclusive. |
Returns
null | SoftKeyMenuItem
The requested menu item.
Throws
Error if index is out of bounds.
Inherited from
handleBack()
handleBack():
void
Defined in: garminsdk/softkey/SoftKeyMenu.ts:108
Handles a back menu action.
Returns
void
Inherited from
handleItemPressed()
handleItemPressed(
index):void
Defined in: garminsdk/softkey/SoftKeyMenu.ts:124
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: garminsdk/softkey/SoftKeyMenu.ts:83
Removes a menu item from the menu.
Parameters
| Parameter | Type | Description |
|---|---|---|
index | number | The softkey index to remove the menu item from. Must be between 0 and 11, inclusive. |
Returns
void
Throws
Error if index is out of bounds.