Skip to main content

Class: WaypointInputStore

Waypoint input store

Constructors

constructor

new WaypointInputStore(bus, searchFilter, onWaypointChanged?, onFacilityChanged?, onMatchedWaypointsChanged?): WaypointInputStore

Creates an instance of waypoint input store.

Parameters

NameTypeDescription
busEventBusThe event bus.
searchFilterFacilitySearchTypeThis store's search filter for ICAOSearch.
onWaypointChanged?(waypoint: null | Waypoint) => voidA function which is called when this store's selected waypoint changes.
onFacilityChanged?(fac: undefined | Facility) => voidA function which is called when this store's selected facility changes.
onMatchedWaypointsChanged?(waypoints: readonly FacilityWaypoint<Facility>[]) => voidA function which is called when this store's matched waypoints changes.

Returns

WaypointInputStore

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/UIControls/WaypointInputStore.ts:64

Properties

displayWaypoint

Readonly displayWaypoint: Object

Type declaration

NameType
cityComputedSubject<string, string>
icaostring
nameComputedSubject<string, string>

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/UIControls/WaypointInputStore.ts:14


inputValue

Readonly inputValue: Subject<string>

A subject which provides the input text value which should be displayed.

Defined in

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


selectedWaypoint

Readonly selectedWaypoint: Subject<null | FacilityWaypoint<Facility>>

A subject which provides the currently selected waypoint.

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/UIControls/WaypointInputStore.ts:35

Accessors

matchedIcaos

get matchedIcaos(): readonly string[]

An array of ICAO strings which have matched the input.

Returns

readonly string[]

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/UIControls/WaypointInputStore.ts:43


matchedWaypoints

get matchedWaypoints(): readonly FacilityWaypoint<Facility>[]

An array of facilities which have matched the input.

Returns

readonly FacilityWaypoint<Facility>[]

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/UIControls/WaypointInputStore.ts:50

Methods

clearWaypoint

clearWaypoint(): void

Clears the selected and displayed waypoint.

Returns

void

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/UIControls/WaypointInputStore.ts:147


doSearch

doSearch(searchStr): Promise<string[]>

Executes the icao search.

Parameters

NameTypeDescription
searchStrstringThe search string.

Returns

Promise<string[]>

An array of the found ICAOs.

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/UIControls/WaypointInputStore.ts:85


loadIcaoData

loadIcaoData(icaos): Promise<boolean>

Loads and display the facility data for the currently found ICAO

Parameters

NameTypeDescription
icaosreadonly string[]The ICAO to load.

Returns

Promise<boolean>

a Promise which fulfills with whether the ICAO data was successfully loaded.

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/UIControls/WaypointInputStore.ts:94


setWaypoint

setWaypoint(waypoint): void

Sets the selected and displayed waypoint.

Parameters

NameTypeDescription
waypointFacilityWaypoint<Facility>A facility waypoint.

Returns

void

Defined in

workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/UIControls/WaypointInputStore.ts:133