Skip to content

Export table data functionality #225

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

Closed
coderabsolute opened this issue Apr 12, 2017 · 4 comments
Closed

Export table data functionality #225

coderabsolute opened this issue Apr 12, 2017 · 4 comments

Comments

@coderabsolute
Copy link

Am requesting to add the functionality to the table component to export to pdf, excel, csv if possible....

@coderabsolute coderabsolute changed the title Export table functionality Export table data functionality Apr 12, 2017
@pi0
Copy link
Member

pi0 commented Apr 12, 2017

@coderabsolute Sorry but we can't extend table functionality anymore. It is meant to keep to base bootstrap. You may use special libraries for that like https://github.com/ratiw/vue-table

@pi0 pi0 closed this as completed Apr 12, 2017
@pi0
Copy link
Member

pi0 commented Apr 12, 2017

Related to #224 :)

@GregPeden
Copy link
Contributor

GregPeden commented Apr 13, 2017

If I may suggest, export to spreadsheet is best handled server-side and so is external to the function of this client-side package. It can be a big job and you have to assume that your user is connecting on their free crappy cell phone. It would also massively bloat the javascript package of every site which carries such a feature.

For my project, one trick I use is that I maintain two separate table templates for each table - one meant for rendering, one meant for spreadsheet export. Though inefficient from a design perspective, I chose this way because there are often subtle differences in what you want to present in each case. I am using this Package in Laravel, using the Blade templating engine:
https://github.com/PHPOffice/PHPExcel

So, you can just shovel a HTML table in to this package and it will produce a spreadsheet, which makes templating easy but isn't the most efficient programatically. It also allows you to just feed it a PHP array or other techniques if you want to get fancy. For me, I wanted quick changes which look similar to the web app rendering, so I am using HTML tables to spreadsheet.

@coderabsolute
Copy link
Author

@pi0 Noted with thanks.
@SirLamer Thanks for the explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants