beforeShow

fires before a popup is shown

boolean beforeShow(HTMLElement element){ ... };

Parameters

elementHTMLElementthe container a popup is placed in

Returns

booleantrue to show a popup, false to block showing a popup

Example

dhxPopup.events.on("BeforeShow", function(element){
    console.log("A popup will be shown");
    return true;
});

Details

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

See also
Back to top