Class: WaypointInputStore
Waypoint input store
Constructors
constructor
• new WaypointInputStore(bus
, searchFilter
, onWaypointChanged?
, onFacilityChanged?
, onMatchedWaypointsChanged?
): WaypointInputStore
Creates an instance of waypoint input store.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus. |
searchFilter | FacilitySearchType | This store's search filter for ICAOSearch. |
onWaypointChanged? | (waypoint : null | Waypoint ) => void | A function which is called when this store's selected waypoint changes. |
onFacilityChanged? | (fac : undefined | Facility ) => void | A function which is called when this store's selected facility changes. |
onMatchedWaypointsChanged? | (waypoints : readonly FacilityWaypoint <Facility >[]) => void | A function which is called when this store's matched waypoints changes. |
Returns
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
Name | Type |
---|---|
city | ComputedSubject <string , string > |
icao | string |
name | ComputedSubject <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
Name | Type | Description |
---|---|---|
searchStr | string | The 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
Name | Type | Description |
---|---|---|
icaos | readonly 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
Name | Type | Description |
---|---|---|
waypoint | FacilityWaypoint <Facility > | A facility waypoint. |
Returns
void
Defined in
workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/Shared/UI/UIControls/WaypointInputStore.ts:133