Skip to main content

Class: WaypointInputStore

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

Waypoint input store

Constructors

Constructor

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

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

Creates an instance of waypoint input store.

Parameters

ParameterTypeDescription
busEventBusThe event bus.
searchFilterFacilitySearchTypeThis store's search filter for ICAOSearch.
onWaypointChanged?(waypoint) => voidA function which is called when this store's selected waypoint changes.
onFacilityChanged?(fac) => voidA function which is called when this store's selected facility changes.
onMatchedWaypointsChanged?(waypoints) => voidA function which is called when this store's matched waypoints changes.

Returns

WaypointInputStore

Properties

displayWaypoint

readonly displayWaypoint: object

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

city

city: ComputedSubject<string, string>

icao

icao: string = ''

name

name: ComputedSubject<string, string>


inputValue

readonly inputValue: Subject<string>

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

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


selectedWaypoint

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

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

A subject which provides the currently selected waypoint.

Accessors

matchedIcaos

Get Signature

get matchedIcaos(): readonly string[]

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

An array of ICAO strings which have matched the input.

Returns

readonly string[]


matchedWaypoints

Get Signature

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

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

An array of facilities which have matched the input.

Returns

readonly FacilityWaypoint<Facility>[]

Methods

clearWaypoint()

clearWaypoint(): void

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

Clears the selected and displayed waypoint.

Returns

void


doSearch()

doSearch(searchStr): Promise<string[]>

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

Executes the icao search.

Parameters

ParameterTypeDescription
searchStrstringThe search string.

Returns

Promise<string[]>

An array of the found ICAOs.


loadIcaoData()

loadIcaoData(icaos): Promise<boolean>

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

Loads and display the facility data for the currently found ICAO

Parameters

ParameterTypeDescription
icaosreadonly string[]The ICAO to load.

Returns

Promise<boolean>

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


setWaypoint()

setWaypoint(waypoint): void

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

Sets the selected and displayed waypoint.

Parameters

ParameterTypeDescription
waypointFacilityWaypoint<Facility>A facility waypoint.

Returns

void