我们如何在Turbotable的参数中实现exportFunction。
根据PrimeNg的定义exportFunction:实现自定义导出的功能。需要返回字符串值。
有没有人在图表中使用过此功能?
答案 0 :(得分:1)
您可以像这样使用
组件;
exportFunction = (data,field) =>{
console.log(data,field)
}
html;
<p-table ... [exportFunction]="exportFunction">