exportFunction 如何在 Turbotable 中工作?
How does exportFunction work in Turbotable?
我们如何实现Turbotable参数中的exportFunction。
根据PrimeNg的定义exportFunction:实现自定义导出的函数。需要return字符串值。
有没有人已经在他的图表中使用过这个功能,如果是的话是如何使用的?
你可以这样使用;
组件;
exportFunction = (data,field) =>{
console.log(data,field)
}
html;
<p-table ... [exportFunction]="exportFunction">
我们如何实现Turbotable参数中的exportFunction。
根据PrimeNg的定义exportFunction:实现自定义导出的函数。需要return字符串值。
有没有人已经在他的图表中使用过这个功能,如果是的话是如何使用的?
你可以这样使用;
组件;
exportFunction = (data,field) =>{
console.log(data,field)
}
html;
<p-table ... [exportFunction]="exportFunction">