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
| Parameter | Type | Description |
|---|---|---|
store | NearestStore | the store |
publisher | ControlPublisher | A ControlPublisher for freq set events. |
viewService | ViewService | The View Service. |
Returns
NearestController
Properties
onDirectIdentHandler()
readonlyonDirectIdentHandler: (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
| Parameter | Type | Description |
|---|---|---|
airport | null | AirportFacility | The airport. |
Returns
boolean
Whether the event was handled.
onEnterFreqHandler()
readonlyonEnterFreqHandler: (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
| Parameter | Type | Description |
|---|---|---|
value | string | The frequency. |
Returns
boolean
Whether the event was handled.