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

Added the Ability to Emit a Blob instead of Download #155

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

EricMcWinNer
Copy link

While working with this lovely repository, I came across a special use-case. I needed to create multiple Excel Spreadsheets and bundle them to one zip file to be downloaded by the user on the client side. This created an obvious issue since the sheets get downloaded automatically, so I created this pull request.

This pull request adds the ability to decide whether to download the Excel file or emit a blob. If the prop emitBlob is set to true, then the code will emit a blob, rather than download when the generate method is fired. This gives the ability to create multiple components and loop through them to generate the blobs and then bundle them to one file.

But going beyond my use-case, it will also give the users the ability to process the blob or do something else with it, for instance resend the blob to another API or other processing feature on the blob.

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

Successfully merging this pull request may close these issues.

1 participant