how to remove backdrop

how to remove backdrop

THEJASVITHEJASVI Posts: 29Questions: 9Answers: 0

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

Answers

  • rf1234rf1234 Posts: 785Questions: 41Answers: 119

    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: 785Questions: 41Answers: 119
    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';
    
Sign In or Register to comment.