Question on the new "layout" option
Question on the new "layout" option
Link to test case: none, sorry
Debugger code (debug.datatables.net): none, sorry
Error messages shown: none
Description of problem:
I am using DT with a Bootstrap4 binding.
In DT 1.x it was possible to alter the DOM to avoid the headers and footers are printed by wrapping everying in a div
with class d-print-none
. I don't see how I can do that with the existing setup. How can I wrap a predefined element like paging
or search
in a container element?
Thanks in advance for your help
This question has an accepted answers - jump to answer
Answers
There isn't an option to add a class to a row or cell for the layout at the moment, other than to modify the renderer or to add it to the elements using DOM or jQuery methods after they are created.
I'm going to look at how I can extend
layout
to allow classes and ids to be assigned to the rows / cells for 2.1.Allan
Thanks Allan as usual for the swift and useful response. Highly appreciated.