Skip to main content

Class: MultipleSoftKeyUserSettingController<T, K>

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

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

Type Parameter
T extends UserSettingRecord
K extends keyof T & string

Constructors

Constructor

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

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

Constructor.

Parameters

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

Methods

destroy()

destroy(): void

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

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

Returns

void


init()

init(): void

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

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

Returns

void