Custom Table CSV Export Headers #11120
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
Current behavior
Current CSV header row is either the Column 'header' or the Column 'field'
From https://github.com/primefaces/primeng/blob/master/src/app/components/table/table.ts
Expected behavior
Add "exportHeader" or similar field to Column to allow for a custom CSV header row
Change would be something like the following:
What is the motivation / use case for changing the behavior?
It can make the exported CSV immediately usable for programatically importing data without having to worry about "header to field name" mappings or order of the values. Ultimately will help ease maintainability if the table or underlying data changes.
The text was updated successfully, but these errors were encountered: