Class: MultipleSoftKeyUserSettingController<T, K>
Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Menus/SoftKeyUserSettingControllers.ts:149
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/Shared/UI/Menus/SoftKeyUserSettingControllers.ts:170
Constructor.
Parameters
| Parameter | 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<ToNonNullable<PropertyTypeOf<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/Shared/UI/Menus/SoftKeyUserSettingControllers.ts:199
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/Shared/UI/Menus/SoftKeyUserSettingControllers.ts:181
Initializes this controller. This will create softkey menu items and bind them to this controller's setting.
Returns
void