0
According to the Ulkit css documentation to display a modal window we have:
<button uk-toggle="target: #my-id" type="button"></button>
<!-- This is the modal -->
<div id="my-id" uk-modal>
<div class="uk-modal-dialog uk-modal-body">
<h2 class="uk-modal-title"></h2>
<button class="uk-modal-close" type="button"></button>
</div>
</div>
It requires a button to fire the modal. As I would to display the modal without the need for a boot. In case it would be inside a javascript function and depending on the result of an IF, I want to call the modal. Example:
if(meuValor > 1){
UIkit.modal("my-id").show();
}
While doing so the system returns to me = "Cannot read Property 'show' of Undefined"
What would be the way to call this modal?