add empty row in row grouping function
add empty row in row grouping function
avb
Posts: 5Questions: 2Answers: 0
Hi ,
I use the datatable "row grouping" function. Its works great !
I would like to add an "empty" row after each row group to have a more readable table. Is it possible ?
On the following code , can i add an empty row with a new <tr> ?
if ( last !== group ) {
$(rows).eq( i ).before(
'<tr class="group"><td colspan="5">'+group+'</td></tr>'
);
Thanks for your help!
This discussion has been closed.
Replies
okey, Its works with a new <tr> and a css class
if ( last !== group ) {
$(rows).eq( i ).before(
'<tr><td class= "espace" colspan="5"></td></tr>'
'<tr class="group"><td colspan="5">'+group+'</td></tr>'
);