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

Blazor Hybrid Export Callbacks #502

Open
thirstyape opened this issue Aug 19, 2024 · 1 comment
Open

Blazor Hybrid Export Callbacks #502

thirstyape opened this issue Aug 19, 2024 · 1 comment

Comments

@thirstyape
Copy link
Contributor

In certain Blazor Hybrid scenarios, such as MAUI on Android, downloading files via JavaScript is either not possible or not easy. This means the Export to SVG, PNG, and CSV options may not work.

My suggestion is to add a custom exporter callback that simply has a JavaScript invoked function that will relay the export information back to C# so the user can handle the export. In the case of .NET MAUI this could easily be linked to something such as FileSaver from the .NET MAUI Community Toolkit.

Getting the data should be possible as per this GitHub Issue.

Just opening for discussion and reference right now; I will create a PR in about one month.

@joadan
Copy link
Member

joadan commented Aug 20, 2024

Hi,

Sounds good, looking forward for the PR.

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

2 participants