Comments (5)
@jefrydco thanks for your input.
is this what you mean by destroy instance?
halkaBox.destroy = function(selector='class_name') {
// remove event listeners on a.class_name tags which open the overlay
// remove internal event listeners of overlay template
// remove overlay html template appended to the body for that specific instance/gallery
}
from halkabox.js.
@ahmednooor Yup, that was right. Actually I try to wrap this library with Vue.js but it seems there is no destroy option.
from halkabox.js.
@jefrydco ok. i will try to implement it as soon as i can.
from halkabox.js.
@jefrydco please check attached zip and let me know if this satisfies the request.
USAGE:
var gallery = halkaBox.run("class-name", { /* options if any */});
gallery.open(0 /* index of the image to open first is zero */);
gallery.next();
gallery.prev();
gallery.close();
gallery.destroy();
from halkabox.js.
destroy
method has been added in v1.4.0 along with other methods. hope it satisfies the request.
a6c4ed0
closing.
from halkabox.js.
Related Issues (19)
- Browser scrollbar HOT 2
- Screen width switch bug HOT 4
- Option for Image List HOT 4
- Some callback for onChange HOT 1
- autoplay HOT 3
- List of galleries HOT 2
- Append description of image HOT 6
- Crossdomain
- Can't use as a module HOT 4
- box-shadow HOT 2
- light-grey control buttons when resizing window, using dark theme HOT 6
- Gesture to close on touch devices HOT 5
- wheelhandler is too sensitive on desktop HOT 4
- Use html5 data-title instead of native title attribute HOT 3
- Double click/tap to zoom in/out HOT 5
- cursor-issue zoom HOT 1
- Transparent PNG HOT 2
- Create gallery items via JSON array 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 halkabox.js.