bootstrap

bootstrap

Andreas S.Andreas S. Posts: 208Questions: 74Answers: 4
edited January 2017 in Editor

I want to adapted the editor Modal style with some more classes and id, because I have some other modals the are already loaded in the html Form.
I read in the forum, that a possible way to change the modal ist $.fn.DataTable.Editor.display.bootstrap.node().
I tried with this example to add a class $.fn.DataTable.Editor.display.bootstrap.node('modal').addClass('id'); but I get always the error "Object doesn't support property or method 'addClass'"

the description about the node() did not help me to find my problem. Is there an example where I can understand what I do wrong? Maybe a hint what I should do?

Andreas

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    $.fn.DataTable.Editor.display.bootstrap.node('modal') returns a node, not a jQuery object.

    So you'd need to do something like:

    var node = $.fn.DataTable.Editor.display.bootstrap.node('modal');
    $(node).addClass( ... );
    

    Allan

This discussion has been closed.