beforeHide
fires before a popup is hidden
beforeHide: (fromOuterClick: boolean, e: Event) => void | boolean;
Parameters:
fromOuterClick: boolean
- true, for a click outside a popup; otherwise, falsee: Event
- the native mouse event
Returns:
Return true
to hide a popup, false
to block hiding a popup.
Example
popup.events.on("beforeHide", function(fromOuterClick,e){
console.log("A popup will be hidden");
return true;
});
Related samples: