0
pointlevel created
Hi!
I have one modal that contains a datatable. I can press a button inside this modal to open another modal on top of the first one. My goal is to do a dataTable.ajax.reload(); when the second modal is closed. How do i fetch that event?
Im using the templates for creating the Modals, so modal-id is set programaticlly.
I can see there is something called onClose in the ModalManager API, but i cannot understand how to use it.
Thanks!
2 Answer(s)
-
0
It has
onClose
function which you can add your onClose handler function. You can usevar _myModal = new app.ModalManager({ ... }); _myModal.onClose(function(){ //do something });
-
0
Thanks, just what i needed :)