How is this modal working with the following datatable?

How is this modal working with the following datatable?

peterimberypeterimbery Posts: 5Questions: 3Answers: 0

I am looking at this example

https://datatables.net/extensions/responsive/examples/display-types/bootstrap4-modal.html

The email and ext are hidden from the datatable but show up in the modal window. How is this being done?

Answers

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

    That's the responsive mode!
    These two columns are hidden from the data table because they wouldn't fit on the screen.

    If you make the browser window small like below only two columns are displayed. The rest goes into a child row which you usually open by clicking on the "plus" sign unless you use the modal mode. If you remove "responsive" no columns are hidden, but they won't fit on the screen.

    And this is the "Default Initialization"

    https://datatables.net/extensions/responsive/examples/initialisation/default.html

This discussion has been closed.