lightbox
lightbox copied to clipboard
Image number calculator in modal
Is it posible to make a image number calculator in modal as in original Lightbox or Colorbox? In Colorbox in opened modal in footer it showing that "Picture 1 of N" so that with galleries it is easy to understand that there is N pictures that user can slide. Also it's good to have an option to stop slide to first image if the last image is shown in modal.
Set data-footer
to your own value, alternatively hook into onNavigate
and update the footer.
I don't understand the last past?
"Also it's good to have an option to stop slide to first image if the last image is shown in modal."
I meen to do a function as in Colorbox when you open an image in modal at footer you can see a total number of images in this gallery and at last image you can't press "Next" button (chevron). See screenshot.
Here is the link to Colorbox example http://www.jacklmoore.com/colorbox/example1/
To disable wrapping (going back to the start of the gallery) see http://ashleydw.github.io/lightbox/#no-wrapping
Good. It's new option.