Comments (3)
Hi,
While it is possible to customize caption using callbacks, I forgot to include a simpler way. Sorry about that. Similar option will be available in the next commit.
from ui.
Thanks, callbacks is what I ended up using just thought there might have been something similar to before.
from ui.
FYI, The first beta was released yesterday and offers a caption
option to make it easier to customize captions, example:
Fancybox.bind('[data-fancybox="gallery"]', {
caption: function (fancybox, carousel, slide) {
return `${slide.index + 1} / ${carousel.slides.length} <br />` + slide.caption;
},
});
Demo - https://gist.lipsum.app/gists/w9
from ui.
Related Issues (20)
- Carousel position resetting when toggling visibility (display none) HOT 2
- Vertical thumbnails? HOT 1
- SASS Deprecation Warning HOT 2
- Performance Issues and loosing state on Mobile HOT 7
- "Nested" Fancybox instance ignores "inline" type, using "clone" instead. HOT 1
- Carousel bug: data-lazy-srcset incorrectly assigned to src instead of srcset
- Carousel thumbs bug: Thumb src doesn't work on addSlide, prependSlide and appendSlide HOT 2
- Deceleration re-implementation? HOT 2
- Fade-in animation jump when backdrop opacity != 1 HOT 2
- use fancybox to open a just-created dom HOT 1
- 图片预览的时候,能不能不要在url添加hash HOT 1
- Enhancements to combined modules (index.js)
- Stacking window 'message' event listeners HOT 1
- Carousel bug: Added slides disappear on breakpoint HOT 1
- funcyBox
- Dots pagination is duplicated HOT 6
- Custom template for prev/next buttons HOT 1
- Add support for videos from rutube
- Is there a way to enable Fancybox to change to the adjacent gallery by simply using the 'up' or 'down' arrow keys? HOT 1
- Vimeo video not working with /video after baseUrl
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 ui.