Skip to main content

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, false
  • e: 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;
});