HTML:
<div id="myModal" class="uk-modal">
<div class="uk-modal-dialog">
<p>hello</p>
</div>
</div>
Javascript:
UIkit.modal("#myModal").show();
How would you pass multiple options like keyboard: false, modal: false etc while initiating the modal through js
After wasting hours I finally got it to work
UIkit.modal('#myModal', {modal: false, keyboard: false, bgclose: false, center: true}).show();
For God's sake would you mind adding it to the Modal Documentation
I agree, the documentation should be more complete.
I agree, the documentation should be more complete.
Documentation? UIKit 2's documentation is little more than an FAQ.
Most helpful comment
After wasting hours I finally got it to work
UIkit.modal('#myModal', {modal: false, keyboard: false, bgclose: false, center: true}).show();For God's sake would you mind adding it to the Modal Documentation