Comments (2)
In 3.3.0 FsLightbox instance is passed as param to custom toolbar button onclick. So you can get the current source URL like this:
fsLightboxInstances['gallery'].props.customToolbarButtons = [{
onClick: (instance) => {
console.log(instance.props.sources[instance.stageIndexes.current]);
}
}];
from fslightbox.
Instead of the lightboxinstance, I get a PointerEvent though :s
from fslightbox.
Related Issues (20)
- Big delay when load page first time
- duplicated items if mutiple a targ point to same url HOT 2
- Svelte needed
- How do you use animations in the pro version????
- Using with Nuxt3 build HOT 3
- "Block all cookies" in Safari breaks fslightbox due to disabling localStorage HOT 1
- fslightbox is not working
- mouse wheel HOT 2
- Is this project dead? Lots of issues and no support. HOT 6
- Is there a way to load multiple lightboxes from single image? HOT 1
- Cannot read properties of null (reading 'charAt') HOT 1
- Empty 'div' at the bottom of the page. HOT 1
- Displaying base64 image HOT 1
- Pinch to zoom causes issues on mobile
- Not working with avif extension HOT 1
- Disable fullscreen when closing lightbox
- in old ios trouble with swipe and zoom
- Vue3: swipe not works on mobile HOT 1
- disableBackgroundClose props does not work
- [Pro] Unable to mount thumbnails with Vanilla 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 fslightbox.