Comments (2)
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 :)
from basiclightbox.
Ah damm i thought it was something simple thanks! ;)
from basiclightbox.
Related Issues (20)
- Iframe responsiveness HOT 1
- IE11 Support? HOT 1
- Gallery Support HOT 2
- Not working in iOS HOT 5
- Height 100vh is too tall on iOS Safari HOT 2
- Managing focus HOT 8
- IE11 - Error when using .create with a template HOT 1
- Lightbox from attributed elements not possible out of the box? HOT 1
- code examples
- onClose function I call loops indefinitely resulting in maximum call stack exceeded error HOT 1
- Adding an ajax loading graphic whilst a slow iframe is being retrieved HOT 5
- Handling <picture> tag HOT 4
- <picture> tag support HOT 1
- Close with esc key HOT 2
- Scripts within lightbox doesn't work HOT 1
- lightbox inside div HOT 1
- closing an instance of a lightbox with an independent button HOT 2
- non minified version on dist folder HOT 1
- Closing opened iFrame HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basiclightbox.