0
I have this modal:
<div class="uk-modal" id="modalbaixados">
<div class="uk-modal-dialog">
<div class="uk-form-row">
<div class="uk-grid">
<div><h3 class="heading_a"> Baixas parciais do lançamento selecionado</h3></div>
</div>
</div>
</div>
<div class="uk-width-medium-2-10">
<!--botão fechar modal-->
<a class="md-btn md-btn-danger md-btn-wave-light md-btn-small uk-modal-close" bg>Fechar</a>
</div>
to open the modal:
<a href="#modalbaixados" data-uk-modal="{ center:true, bgclose:true }">
this works perfectly, however I will need to open the modal from a javascript function, so in this function I need a code to open the modal:
//abrir modal
$scope.abrirModal = function (conta) {
como abrir a modal?
}
I’ll need to also close this modal by a function:
//fechar modal
$scope.fecharModal = function () {
como fechar a modal?
}
how to do this ?
Have you tried the documentation example? https://getuikit.com/v2/docs/modal.html#javascript
– Sergio
$('.modalSelector').on({

 'show.uk.modal': function(){
 console.log("Modal is visible.");
 },

 'hide.uk.modal': function(){
 console.log("Element is not visible.");
 }
});
-.modalSelector
would be what ? the modal id ?– alessandre martins