As for October 2018 there's still no solution for next/prev navigation on mobiles. In many cases this makes modal almost unusable so I created my own solution and want to share it.
It's based on native events of this plugin and quite easy. Just adds arrows to the header:
Add this JS to yours:
and change selector for your modal
$(document).on('opening', '.iziModal', function (e) {
var isMobile = (/Mobi/.test(navigator.userAgent));
if (!isMobile) return false;
var m = $(this);
var changed_mark = 'buttons_added';
// Prevent multiple append
if (m.data(changed_mark)) return false;
var g = m.iziModal('getGroup');
// Check for prev
var prev_class = g.index === 0 ? ' dis' : '';
var prev_state = g.index === 0 ? '' : 'data-izimodal-prev=""';
// Check for next
var has_next = (g.index + 1) < g.ids.length;
var next_class = has_next ? '' : ' dis';
var next_state = has_next ? 'data-izimodal-next=""' : '';
// Append buttons
var p = '<a href="javascript:void(0)" class="iziModal-button iziModal-button-prev'+ prev_class +'" '+ prev_state +'></a>';
var n = '<a href="javascript:void(0)" class="iziModal-button iziModal-button-next'+ next_class +'" '+ next_state +'></a>';
$('.iziModal-header-buttons', m).append(n + p);
// Mark as changed
m.data(changed_mark, true);
});
As for October 2018 there's still no solution for next/prev navigation on mobiles. In many cases this makes modal almost unusable so I created my own solution and want to share it.
It's based on native events of this plugin and quite easy. Just adds arrows to the header:
Add this JS to yours:
and change selector for your modal
Add up some CSS (and change it at your flavor):
Hope this feature will be in the plugin itself one day. 🙏