Search code examples
primengprimeng-turbotable

How does exportFunction work in Turbotable?


How do we implement the exportFunction in the parameters of Turbotable.

According to the definition of PrimeNg exportFunction: A function to implement custom export. Need to return string value.

Is there anyone who has already used this feature in his chart and if so how?


Solution

  • you can use like this;

    component;

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

    html;

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