How can I left align the row group header
How can I left align the row group header
polachan
Posts: 101Questions: 50Answers: 0
I am using multi row grouping. I dont want to show the row group header at the center.group header should be left aligned. But detail line only need to be centered.
Pls can you give the code to make it on the link. But when I give center style, it center all the row including group row. Group row should be left aligned
https://jsfiddle.net/kxetda3h/4/
This discussion has been closed.
Replies
See if this example helps:
https://datatables.net/extensions/rowgroup/examples/initialisation/customRow.html
Kevin
But I am using the code to centre text align in all table column , otherwise the column value will show different position from heading.
table,
th,
td {
border: 1px black;
text-align: center;
font: smaller;
}
Please can you give me the corrected code to show the group text with left align in my code in the link
https://jsfiddle.net/kxetda3h/4/
Apply a class and create the necessary CSS.
https://datatables.net/reference/option/rowGroup.className
See if this updated fiddle helps:
https://jsfiddle.net/h16kmf3p/
Used
rowGroup.startRender
along with a new classtd-left
.Kevin
Many Thanks