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
Name | Type |
---|---|
T | extends UserSettingRecord |
K | extends keyof T & string |
Constructors
constructor
• new MultipleSoftKeyUserSettingController<T
, K
>(softkeyMenu
, settingManager
, settingName
, softkeyDefs
): MultipleSoftKeyUserSettingController
<T
, K
>
Constructor.
Type parameters
Name | Type |
---|---|
T | extends UserSettingRecord |
K | extends string |
Parameters
Name | Type | Description |
---|---|---|
softkeyMenu | SoftKeyMenu | The softkey menu to which this controller's bound softkeys belong. |
settingManager | UserSettingManager <T > | This controller's setting manager. |
settingName | K | The name of this controller's setting. |
softkeyDefs | MultipleSoftkeyUserSettingDef <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