pedroabreu / ion-gallery

Ionic gallery directive
MIT License
124 stars 61 forks source link

Next and Previous Button #69

Open lucasalmeida92 opened 8 years ago

lucasalmeida92 commented 8 years ago

Is there a way to create a next and a previous button to navigate in gallery modal ? How do I manipulate these events?

Thank you!

nmckeown commented 7 years ago

This is a start if you want to add custom buttons:

I have been able to add a button to slider html. You need to include the relative path to get this working. So for me, it's like the below:

// values for ion-gallery directive ionGalleryConfigProvider.setGalleryConfig({ action_label: 'Close', //template_gallery: 'gallery.html', //template_slider: 'slider.html', template_gallery: '../../assets/lib/ion-gallery/src/templates/tGallery.html', template_slider: '../../assets/lib/ion-gallery/src/templates/tSlider.html', toggle: false, row_size: 3, fixed_row_size: true });

Example below of adding a button to the end of the slider. I'm having problem getting the padding working on right hand side but it's a start: