iziModal icon indicating copy to clipboard operation
iziModal copied to clipboard

Confusing manual for first timer

Open ethaniel opened this issue 6 years ago • 2 comments

When I first installed the module, I thought that correct way of opening a modal window is:

$('#modal').iziModal('open');

But in reality, only this code worked:

var modal = $('#modal').iziModal();
modal.iziModal('open');

Maybe it's worth changing the instructions a bit to reflect this?

ethaniel avatar Feb 17 '18 09:02 ethaniel

or you can create a button and add data attributes e.g

<button data-izimodal-open="#modal">Open Modal</button>

Which is the easiest way imo

coffeestains1908 avatar Mar 29 '18 07:03 coffeestains1908

I need to invoke the modal window from a javascript function. The normal "button" way doesn't work for me.

ethaniel avatar Mar 29 '18 07:03 ethaniel