Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTable: exportData exclude column footers #3328

Closed
revivedtitan opened this issue Nov 23, 2022 · 3 comments
Closed

DataTable: exportData exclude column footers #3328

revivedtitan opened this issue Nov 23, 2022 · 3 comments
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@revivedtitan
Copy link

Describe the feature you would like to see added

The ability to exclude the column footers in the exported CSV

Is your feature request related to a problem?

No

Describe the solution you'd like

Add a boolean prop that would exclude column footers from the csv export

Describe alternatives you have considered

Bypassing completely the exportCSV function and using an custom function. This creates more work when it could probably simply be added into the primevue code base.

Additional context

No response

@revivedtitan revivedtitan added Status: Discussion Issue or pull request needs to be discussed by Core Team Type: New Feature Issue contains a new feature or new component request labels Nov 23, 2022
@Antontsyk
Copy link

How can remove the footer from the exported table CSV ?

@scritrolf
Copy link

scritrolf commented Jan 5, 2023

Hello all, I can only second that. A CSV file with a footer containing the column names is rather uncommon in my opinion. I'd go as far as saying that the default should be to not export footers into csv.

Is it customary in primevue land to just add a pull request, btw?

@tugcekucukoglu tugcekucukoglu added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add and removed Status: Discussion Issue or pull request needs to be discussed by Core Team Type: New Feature Issue contains a new feature or new component request labels Jan 27, 2023
@tugcekucukoglu tugcekucukoglu added this to the 3.23.0 milestone Jan 27, 2023
@tugcekucukoglu tugcekucukoglu self-assigned this Jan 27, 2023
@tugcekucukoglu
Copy link
Member

If exportFooter is not defined, the CSV file does not consist export footer for a column.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

4 participants