How can I export a Treetables data to excel?

UI Components for Angular
Post Reply
JSpencer
Posts: 2
Joined: 25 Nov 2022, 12:34

25 Nov 2022, 12:46

I have looked around and I don't see anything specific for the TreeTable itself. Within the documentation it does have an export function for a normal DataTable but not a TreeTable. I did notice that primefaces already has an exporter for their treatable but nothing within primeng. This post recently was closed without a feature being added. https://github.com/primefaces/primeng/issues/7942

I have tried using the Datatables export using the treenode array in place of the normal data array to no avail.

"sales: TreeNode[];"
"const worksheet = xlsx.utils.json_to_sheet(this.sales);"

Is there a simple workaround to make it possible to export treetable data within primeng?

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests