Hey guys, I'm working with the the Direction Widget ( https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html ) which as the default reset() function that should reset the components. Source and Target field are cleared but the Travel Mode and Departure Time field does not reset when called.
I was able to get access to the selectedTravelMode via the ViewModel and set it to the default travelModes[0] after the reset function is called. But I don't seem to have a way to access the departure-time combobox via the viewmodel. Variable `_departuretime: "leave-now"` via the Description class ( https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions-DirectionsView... ) seems to hold the select value, but also no access.
Solved! Go to Solution.
This was my solution to reset the travel mode and departure-time
This was my solution to reset the travel mode and departure-time