【问题标题】:How does exportFunction work in Turbotable?Turbotable 中的 exportFunction 是如何工作的?
【发布时间】:2019-01-31 13:52:12
【问题描述】:

我们如何在Turbotable的参数中实现exportFunction。

根据PrimeNg exportFunction的定义:实现自定义导出的函数。需要返回字符串值。

是否有人已经在他的图表中使用过此功能,如果有,如何使用?

【问题讨论】:

    标签: primeng primeng-turbotable


    【解决方案1】:

    你可以这样使用;

    组件;

    exportFunction = (data,field) =>{
        console.log(data,field)
    }
    

    html;

    <p-table ... [exportFunction]="exportFunction">
    

    【讨论】:

    • 谢谢你的回答@foxgang,但是你在函数 exportfunction 中返回了什么?,如果你能给我看一个例子。
    猜你喜欢
    • 2018-07-03
    • 2019-08-04
    • 1970-01-01
    • 1970-01-01
    • 2011-04-16
    • 2015-04-30
    • 2018-02-03
    • 2021-09-23
    • 2023-03-05
    相关资源
    最近更新 更多