Overlays - globules-io/OGX.JS GitHub Wiki
From any
Uxi, or object that extends theOverlayclass
const conf = {
anim: _ANIMATION_, //optional
display: _DISPLAY_OBJ_, //optional
close_on_click: true|function|false //optional
};
this.addOverlay(conf);
Add a custom display
const conf = {
display: {css: 'my_css', html:'<span>some text</span>'},
close_on_click: false
};
this.addOverlay(conf);
this.removeOverlay(_ANIMATION_, _CALL_BACK_);
Removing a popup without passing an animation will use the animation used when the popup was created. Passing an animation overrides it.