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-DirectionsViewModel.html ) seems to hold the select value, but also no access.
This was my solution to reset the travel mode and departure-time
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.