Hi,
I had a question about Popup/PopupMobile of Search widget (Web AppBuilder Developper 2.1).
On mobile mode, PopupMobile is used. Event hide/show are start off when user maximize or minimize PopupMobile.
- Opening ==> "show" event
- Maximize ==> "hide" event
- Minimize ==> "show" event
- Closing ==> "hide" event
On no mobile mode, Popup is used. No event is start off when user maximize or minimize Popup.
- Opening ==> "show" event
- Maximize ==> no event
- Minimize ==> no event
- Closing ==> "hide" event
To see add folowwing code in startup function (..\widgets\Search\Widget.js):
// Add log in console ==> show event on infoWindow
this.own(
on(this.map.infoWindow, 'show', lang.hitch(this, function() {
console.log("[widgets][Search][Widget][startup] infoWindow ==> show");
}))
);
// Add log in console ==> hide event on infoWindow
this.own(
on(this.map.infoWindow, 'hide', lang.hitch(this, function() {
console.log("[widgets][Search][Widget][startup] infoWindow ==> hide");
}))
);
Why there is behavior difference between Popup and PopupMobile in Search Widget ?
About PopupMobile is it normal to start off hide event when maximize? because it start off the reset search (graphic is deleted).
Thanks,
Flavie