Closed adam-jones-net closed 4 years ago
The show function isn't returning an instance. You can do it like this:
var popup="";
function testPopup(content){
popup=basicLightbox.create(content+` - <span class="btnClose">CLOSE</span>`);
popup.show();
}
Hope that helps :)
Ah damm i thought it was something simple thanks! ;)
Having a really simple problem. I'm trying to generate via a function and find that the close command doesn't work.
So I define global variable, then within the function try to update it whenever called.
Then to catch the close button click...