制表符 - 有没有办法只打印选定的行

Tabulator - is there a way to print just selected rows

我正在使用制表符 javascript table:

http://tabulator.info/docs/4.3/print

有没有办法只打印选定的行:

 var table = new Tabulator("#example-table", {
    printAsHtml:true, //enable html table printing
    printVisibleRows:false, // print all rows in the table
});

我正在寻找的是诸如“printSelectedRows: true) 之类的选项或我可以用来完成此操作的某种解决方法。

没有这个选项。我能想到的一种解决方法是一个过滤器,它只导致您希望可见的行而不使用 printVisibleRows:false。然后只会打印那些行。这当然取决于具有某些共同元素的行选择。对于临时选择工作,我能想到的是: 1)可移动行: http://tabulator.info/docs/4.3/move#rows 将您想要的行移动到 table.

的可见部分

2) 在 table 之间移动: 将行移动到另一个 table 进行打印。 http://tabulator.info/docs/4.3/move#rows-table