Open efolam opened 4 years ago
How can I set caption to each image when I open Lightbox like this:
this.$lightbox.open({ items: ['imageUrl1', 'imageUrl2', 'imageUrl3'] })
I tried do it so:
this.$lightbox.open({ items: [ { href: 'imageUrl1', title: 'caption 1' }, { href: 'imageUrl2', title: 'caption 2' }, { href: 'imageUrl3', title: 'caption 3' } ] })
But it doesn't work
Hello, it's as easy as dividing them: this.$lightbox.open({ items: [imageUrl1,imageUrl2], captions: ['caption1', 'caption2'] ] })
this.$lightbox.open({ items: [imageUrl1,imageUrl2], captions: ['caption1', 'caption2'] ] })
How can I set caption to each image when I open Lightbox like this:
I tried do it so:
But it doesn't work