在制表符中显示最后一组
Show last group in tabulator
我使用制表符,是否有其他可能性或现成的函数示例仅显示最后一组?
var lastGr = function(value, count, data, group){
return group(count) > group(count)-1; // Show only the last group
};
var table = new Tabulator("#tables", {
groupStartOpen:lastGr,
...
Why do you want to show only the last group are you trying to sum all
the rows, etc.
如果是,则检查 documentation
如果您只想更新 table 最后一行,您可以
table.clearData();
table.addData([{id:1, name:"bob", gender:"male"}, {id:2, name:"Jenny", gender:"female"}], true);
传递最后一行以添加数据函数,如 documentation
我使用制表符,是否有其他可能性或现成的函数示例仅显示最后一组?
var lastGr = function(value, count, data, group){
return group(count) > group(count)-1; // Show only the last group
};
var table = new Tabulator("#tables", {
groupStartOpen:lastGr,
...
Why do you want to show only the last group are you trying to sum all the rows, etc.
如果是,则检查 documentation
如果您只想更新 table 最后一行,您可以
table.clearData();
table.addData([{id:1, name:"bob", gender:"male"}, {id:2, name:"Jenny", gender:"female"}], true);
传递最后一行以添加数据函数,如 documentation