0

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?

Greg-A
  • 772
  • 1
  • 19
  • 41

1 Answers1

1

you can use like this;

component;

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

html;

<p-table ... [exportFunction]="exportFunction">
foxgang
  • 69
  • 3
  • Thank you for your answer @foxgang , but what do you return in the function exportfunction ?, if you could show me an example. – Greg-A Feb 01 '19 at 13:33