Skip to main content

beforeShow

fires before a popup is shown

beforeShow: (node: HTMLElement) => void | boolean;

Parameters:

node: HTMLElement - the container a popup is placed in

Returns:

Return true to show a popup, false to block showing a popup.

Example

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