Skip to main content

Class: NearestController

A nearest controleer

Constructors

constructor

new NearestController(store, publisher, viewService): NearestController

Creates one.

Parameters

NameTypeDescription
storeNearestStorethe store
publisherControlPublisherA ControlPublisher for freq set events.
viewServiceViewServiceThe View Service.

Returns

NearestController

Defined in

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

Properties

onDirectIdentHandler

Readonly onDirectIdentHandler: (airport: null | AirportFacility) => boolean

Type declaration

▸ (airport): boolean

A callback which is called when a DRCT input is made on a nearest airport.

Parameters
NameTypeDescription
airportnull | AirportFacilityThe airport.
Returns

boolean

Whether the event was handled.

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/Controllers/NearestController.ts:11


onEnterFreqHandler

Readonly onEnterFreqHandler: (value: string) => boolean

Type declaration

▸ (value): boolean

A callback which is called when an ENTER input is made on a nearest airport frequency.

Parameters
NameTypeDescription
valuestringThe frequency.
Returns

boolean

Whether the event was handled.

Defined in

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