This piece of code (taken from the 4.3 doc #) is never called
searchWidget.on("load", function (evt) { console.log("Search widget has loaded!");});
any thoughts?
That is interesting.
I tried wrapping the widget creation, event registration in a timeout. Didn't help:
JS Bin - Collaborative JavaScript Debugging
Hello martin,
There is an event which is not loading properly. If still the console log is required, fire the statement without on load event. It will work. what I mean to say is
original text-
searchWidget.on("load", function (evt) { console.log("Search widget has loaded!"); });
Replace it with-
console.log("Search widget has loaded!");
Without event
Looks like a bug with the Search widget. We'll get it fixed for the next release of the API.
The load event never actually existed on the Search widget. This was a documentation error that will be removed at 4.4.
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.