Skip to main content

Class: NearestController

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/NearestController.ts:7

A nearest controleer

Constructors​

Constructor​

new NearestController(store, publisher, viewService): NearestController

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/NearestController.ts:20

Creates one.

Parameters​

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

Returns​

NearestController

Properties​

onDirectIdentHandler()​

readonly onDirectIdentHandler: (airport) => boolean

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/NearestController.ts:11

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

Parameters​

ParameterTypeDescription
airportAirportFacility | nullThe airport.

Returns​

boolean

Whether the event was handled.


onEnterFreqHandler()​

readonly onEnterFreqHandler: (value) => boolean

Defined in: workingtitle-instruments-g1000/html_ui/Shared/UI/Controllers/NearestController.ts:12

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

Parameters​

ParameterTypeDescription
valuestringThe frequency.

Returns​

boolean

Whether the event was handled.