hjalmers / angular-generic-table

A generic table for Angular 2+. Generic table uses standard markup for tables ie. table, tr and td elements etc. and has support for expanding rows, global search, filters, sorting, pagination, export to CSV, column clicks, custom column rendering, custom export values.
https://hjalmers.github.io/angular-generic-table/
MIT License
104 stars 55 forks source link

Export to CSV How to define Col header name #261

Open thebigcosinus opened 6 years ago

thebigcosinus commented 6 years ago

Hi,

I'm using the export to csv function which is working great in my case but I can't figure how to set the col header name. I would like it to be different from the table cell name.

Thanks for you advice and help

regards

hjalmers commented 6 years ago

I'm afraid that's currently not possible, if you just want to change the heading for a column or two you could always add a new hidden column with name you want that's only exported. Note the nicest solution but it should work:)

I haven't heard anyone request this feature before but it would be pretty simple to implement so I'll mark this as a feature request.