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

Add the ability to swap the underlying exporter #889

Open
valentinogagliardi opened this issue Feb 11, 2023 · 0 comments
Open

Add the ability to swap the underlying exporter #889

valentinogagliardi opened this issue Feb 11, 2023 · 0 comments

Comments

@valentinogagliardi
Copy link

First of all, thanks for this fantastic library! I'm using it for a bunch of tables in a Django project, and I really love the simplicity and ease of use.

For my use case, I had to customize things a bit to get custom styling in the exported Excel, and I don't like how I did it.

From what I understand, there is currently no clean method to swap the underlying data structure, and its exporter, used in https://github.com/jieter/django-tables2/blob/master/django_tables2/export/export.py#L65

What I ended up doing is a subclass of TableExport, where I overrode the Dataset class.

Another thing I don't like of tablib is that there is no way as far as I can tell to customize the styles in XLSXFormat.

It is something feasible?

With the proper guidance, I'd love to contribute with a pull request.

Thanks!

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

1 participant