beforeHide

fires before a popup is hidden

boolean beforeHide(boolean fromOuterClick,Event e){ ... };

Parameters

fromOuterClickbooleantrue, for a click outside a popup, otherwise - false
eEventthe native mouse event

Returns

booleantrue to hide a popup, false to block hiding a popup

Example

dhxPopup.events.on("BeforeHide", function(fromOuterClick,e){
    console.log("A popup will be hidden");
    return true;
});

Details

The event is blockable. Return false to block hiding a popup.

Back to top