在 DataTables 中,我们具有显示 100 行中的第 1 行的功能。我想在制表器中执行相同或类似的操作。我使用了这种方法,它返回空表:
JavaScript
var tabulator_table = new Tabulator("#example", {
columns: [
{ title: "", field: "", headerFilter: "input" },
{ title: "", field: "", headerFilter: "input" },
{ title: "", field: "", headerFilter: "input" },
{ title: "", field: "", headerFilter: "input" },
{ title: "", field: "", headerFilter: "input" },
{ title: "", field: "", headerFilter: "input" },
],
//this part should return row count
dataFiltered: function (data, field, type, value) {
//data - …Run Code Online (Sandbox Code Playgroud)