how to remove backdrop

how to remove backdrop

THEJASVITHEJASVI Posts: 31Questions: 9Answers: 0

edit datatable while creating new row how to remove modal backdrop set false or how to remove

Answers

  • rf1234rf1234 Posts: 2,988Questions: 87Answers: 421

    This will keep the modal open even if you click outside the modal:

    //Editor default settings!
    $.extend( true, $.fn.dataTable.Editor.defaults, {
        formOptions: {
            main: {
                onBackground: 'none'
            },
            bubble: {
                onBackground: 'none'
            }
        }
    });
    
  • rf1234rf1234 Posts: 2,988Questions: 87Answers: 421
    edited September 2018

    I am not sure but I think you wanted to put a datatable into a bootstrap modal as well, didn't you?

    To prevent a bootstrap modal from closing if you click outside the modal you would also have to add this line of code. It has the same effect as the code above has on Editor modals.

    ....
    $.fn.modal.prototype.constructor.Constructor.DEFAULTS.backdrop = 'static';
    
This discussion has been closed.