(don't kill me) Is there any option to include a row which colspans all columns - like a title
(don't kill me) Is there any option to include a row which colspans all columns - like a title
BigAndy
Posts: 2Questions: 1Answers: 0
First of all, this is an amazing product, super easy to set up and to get it running. Thank you!
Yes, I know, Datatables does not support rowspan and colspan in tbody. Just now I read about the childrow option. Can this be used to get a full width title in the middle of the table and make it look like a separate row not a child row? Or is there any other way to insert such a title? Maybe there is some option to mark a row manually as non data row?
This discussion has been closed.
Answers
Yes, you can use child rows in this way. It is effectively independent of the parent table (although its position is obviously determined by the connected row), and you can place whatever HTML you like in it.
This example shows a child row spanning the full width for example.
To make it look not like a child row is just a question of CSS styling.
Allan
Dear Allan,
thank you very much for the confirmation. Then I know what to do.
Have a nice day!