Skip to main content

Class: UserSettingNumberController<T, K>

A controller which binds a user setting with numeric values to a numeric input component.

Type parameters

NameType
Textends UserSettingRecord
Kextends keyof UserSettingValueFilter<T, number> & string

Hierarchy

Constructors

constructor

new UserSettingNumberController<T, K>(settingManager, settingName): UserSettingNumberController<T, K>

Constructor.

Type parameters

NameType
Textends UserSettingRecord
Kextends string

Parameters

NameTypeDescription
settingManagerUserSettingManager<T>This controller's settings manager.
settingNameKThe name of the setting associated with this controller.

Returns

UserSettingNumberController<T, K>

Overrides

UserSettingController.constructor

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/UserSettings/UserSettingNumberController.ts:19

Properties

dataSub

Readonly dataSub: Subject<number>

A subject which is bound to this controller's user setting.

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/UserSettings/UserSettingNumberController.ts:12


setting

Readonly setting: UserSetting<NonNullable<T[K]>>

The setting associated with this controller.

Inherited from

UserSettingController.setting

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/UserSettings/UserSettingController.ts:8


settingManager

Readonly settingManager: UserSettingManager<T>

This controller's settings manager.

Inherited from

UserSettingController.settingManager

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/UserSettings/UserSettingNumberController.ts:20


settingName

Readonly settingName: K

The name of the setting associated with this controller.

Inherited from

UserSettingController.settingName

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/UserSettings/UserSettingNumberController.ts:21

Methods

init

init(): void

Initializes this controller. This will immediately change the state of this controller's control component to reflect the current value of this controller's setting. Furthermore, any future changes to the setting's value will be synced to the control component.

Returns

void

Overrides

UserSettingController.init

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/UserSettings/UserSettingNumberController.ts:31


onSettingChanged

onSettingChanged(value): void

A callback which is called when value of this control's setting is changed.

Parameters

NameTypeDescription
valueT[K]The new value of the setting.

Returns

void

Overrides

UserSettingController.onSettingChanged

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/UserSettings/UserSettingNumberController.ts:38