Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Multiple Modals #7498


User avatar
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)
  • User Avatar
    0
    musa.demir created

    It has onClose function which you can add your onClose handler function. You can use

    var _myModal = new app.ModalManager({
          ...
    });
            
    _myModal.onClose(function(){
           //do something
    });
    
  • User Avatar
    0
    pointlevel created

    Thanks, just what i needed :)