Skip to main content

Class: MultipleSoftKeyUserSettingController<T, K>

A controller which binds one or more status bar softkeys to a user setting. Each softkey is bound to a specific setting value. Once bound, each press of the softkey will set the setting to its bound value.

Type parameters

NameType
Textends UserSettingRecord
Kextends keyof T & string

Constructors

constructor

new MultipleSoftKeyUserSettingController<T, K>(softkeyMenu, settingManager, settingName, softkeyDefs): MultipleSoftKeyUserSettingController<T, K>

Constructor.

Type parameters

NameType
Textends UserSettingRecord
Kextends string

Parameters

NameTypeDescription
softkeyMenuSoftKeyMenuThe softkey menu to which this controller's bound softkeys belong.
settingManagerUserSettingManager<T>This controller's setting manager.
settingNameKThe name of this controller's setting.
softkeyDefsMultipleSoftkeyUserSettingDef<NonNullable<T[K]>>[]The definitions for the softkeys bound to this controller's setting.

Returns

MultipleSoftKeyUserSettingController<T, K>

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyUserSettingControllers.ts:174

Methods

destroy

destroy(): void

Destroys this controller. This will remove the softkey menu items bound to this controller's setting.

Returns

void

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyUserSettingControllers.ts:204


init

init(): void

Initializes this controller. This will create softkey menu items and bind them to this controller's setting.

Returns

void

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Menus/SoftKeyUserSettingControllers.ts:185