Constructor
# new RoutingMenu(…props)
Default constructor, gets called automatically upon initialization.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
props |
RoutingMenuProps |
<repeatable> |
Props received so that the component can function properly. |
Members
# addNewSearchFieldHandler
Create a new search field (hop) between already existing search fields
# handleMotChange
Process changing the current selected mot, save in local state and dispatch store action.
# onFieldFocusHandler
Gets callled when a search field is in focus. Keep track of the last focused/selected field.
# processClickedResultHandler
The user uses the mouse/touch to select one of the search results.
# processHighlightedResultSelectHandler
The user makes changes to the current search. Either select the first result, or delete the text to make a new search.
# removeSearchFieldHandler
Remove a search field (hop) from a defined index. Then dispatch an update to the stops, so that the route can be updated if exists.
# searchStopsHandler
Perform searching for stations through the station API
# updateCurrentStops
Update the current stops array (string array) and the GeoJSON array in the local state.
# validateMots
Validate the mots provided from the props, then retrieve the icons for the valid ones.