multi-row / html formatted display of table row
multi-row / html formatted display of table row
Description of problem:
I want to have a formatted row of the table to use multiple lines, e.g, col 1 on one line, col 2 ( a list) taking several lines, etc. I know https://datatables.net/manual/styling/classes gives some control but I'm not sure if that's sufficient. I'm looking for something more like https://editor.datatables.net/manual/templates but for the individual row of the table.
Is this something I can hack somehow?
I can maybe dig into the datatables styles (e.g., by column) and use css, but was wondering if there's an easier way. Actually I'm not that conversant in css, would prefer to do something in html or a templating language similar to php or jinja2.
This question has an accepted answers - jump to answer
Answers
The best bet here would be to use something like child rows - but have them always open (you could do that in
initComplete
orcreatedRow
,Colin