Skip to main content

Class: PfdRootSoftKeyMenu

Defined in: workingtitle-instruments-g3000/html_ui/PFD/SoftKey/PfdRootSoftKeyMenu.ts:11

The root PFD softkey menu.

Extends

  • SoftKeyMenu

Constructors

Constructor

new PfdRootSoftKeyMenu(menuSystem, pfdIndex, activeNavIndicator, obsSuspDataProvider, mapLayoutSettingManager, radiosConfig, declutter, isSplit): PfdRootSoftKeyMenu

Defined in: workingtitle-instruments-g3000/html_ui/PFD/SoftKey/PfdRootSoftKeyMenu.ts:38

Creates an instance of the root PFD softkey menu.

Parameters

ParameterTypeDescription
menuSystemSoftKeyMenuSystemThe softkey menu system.
pfdIndexPfdIndexThe index of the PFD instrument to which this menu belongs.
activeNavIndicatorG3000NavIndicatorThe active nav indicator of this menu's PFD.
obsSuspDataProviderObsSuspDataProviderA provider of OBS/SUSP data.
mapLayoutSettingManagerUserSettingManager<PfdMapLayoutUserSettingTypes>A manager for map layout settings for this menu's PFD.
radiosConfigRadiosConfigThe radios configuration object.
declutterSubscribable<boolean>Whether this menu's parent PFD is decluttered.
isSplitbooleanWhether the menu is a split-mode menu.

Returns

PfdRootSoftKeyMenu

Overrides

SoftKeyMenu.constructor

Properties

protected menuSystem: SoftKeyMenuSystem

Defined in: garminsdk/softkey/SoftKeyMenu.ts:45

The menu system that will manage this menu.

Inherited from

SoftKeyMenu.menuSystem


SOFTKEY_COUNT

readonly static SOFTKEY_COUNT: 12 = 12

Defined in: garminsdk/softkey/SoftKeyMenu.ts:36

The number of softkeys in each menu.

Inherited from

SoftKeyMenu.SOFTKEY_COUNT

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

ParameterTypeDefault valueDescription
indexnumberundefinedThe softkey index to add the menu item to. Must be between 0 and 11, inclusive.
labelstringundefinedThe label of the menu item.
handler?(menu) => voidundefinedThe handler to call when the menu item is selected.
value?string | booleanundefinedThe value of the menu item, if any.
disabled?booleanfalseWhether or not the menu item is disabled.

Returns

SoftKeyMenuItem

The new menu item.

Throws

Error if index is out of bounds.

Inherited from

SoftKeyMenu.addItem


destroy()

destroy(): void

Defined in: workingtitle-instruments-g3000/html_ui/PFD/SoftKey/PfdRootSoftKeyMenu.ts:175

Returns

void

Inherit Doc

Overrides

SoftKeyMenu.destroy


forEach()

forEach(each): void

Defined in: garminsdk/softkey/SoftKeyMenu.ts:116

Iterates over the menu items.

Parameters

ParameterTypeDescription
each(menuItem, index) => voidThe function to run over each menu item.

Returns

void

Inherited from

SoftKeyMenu.forEach


getItem()

getItem(index): null | SoftKeyMenuItem

Defined in: garminsdk/softkey/SoftKeyMenu.ts:97

Gets a menu item.

Parameters

ParameterTypeDescription
indexnumberThe 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

SoftKeyMenu.getItem


handleBack()

handleBack(): void

Defined in: garminsdk/softkey/SoftKeyMenu.ts:108

Handles a back menu action.

Returns

void

Inherited from

SoftKeyMenu.handleBack


handleItemPressed()

handleItemPressed(index): void

Defined in: garminsdk/softkey/SoftKeyMenu.ts:124

Handles when a menu item is pressed.

Parameters

ParameterTypeDescription
indexnumberThe index of the menu item that was pressed.

Returns

void

Inherited from

SoftKeyMenu.handleItemPressed


removeItem()

removeItem(index): void

Defined in: garminsdk/softkey/SoftKeyMenu.ts:83

Removes a menu item from the menu.

Parameters

ParameterTypeDescription
indexnumberThe 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.

Inherited from

SoftKeyMenu.removeItem