miromannino / Justified-Gallery

Javascript library to help creating high quality justified galleries of images. Used by thousands of websites as well as the photography community 500px.
http://miromannino.github.io/Justified-Gallery/
MIT License
1.7k stars 299 forks source link

Maximum Number of thumbnails. #148

Open mariashahid opened 8 years ago

mariashahid commented 8 years ago

Hi, I want to set an upper limit to the number of thumnails displayed, lets say I want not more than 10 thumbnails displayed in one time and show a count of remaining images and display remaining images in any lightbox when clicked just like facebook

untitled

derWebdesigner commented 8 years ago

@miromannino I just tried to code something like this, but it seems to be impossible, because the complete-event is thrown before the last row is hidden, so I can't figure out which one of the images is the real last shown one. Shouldn't the complete-event be thrown after everything is complete, which means that if I set "hide" on "lastRow"-setting, I would expect the event to be thrown when the ".entry-visible"-classes are already removed from the images in the last hidden row.

der-lukas commented 8 years ago

+1 - Was just trying to accomplish the exact same behavior!