【发布时间】:2018-07-31 00:40:22
【问题描述】:
我正在使用datatables with row grouping,并且我只想在有两个或多个具有相同值的行时才显示 RowGroup。问题是我不知道如何删除少于两行的组。
这是我目前得到的:
rowGroup: {
startRender: function(rows, group) {
if (rows.count() > 1) {
return group + ' Dni';
} else {
console.log(rows); // Rows that I want to remove
rows.remove(); // This aint working
}
},
endRender: null,
dataSrc: 8
},
Here is some wild example我不明白。
非常感谢任何帮助。
【问题讨论】:
标签: javascript datatables