mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
feat(embedded-SDK): enable CSV download (#20416)
* feat(embedded-sdk): enable CSV download * lint
This commit is contained in:
@@ -105,9 +105,10 @@ export async function embedDashboard({
|
||||
iframe.sandbox.add("allow-scripts"); // obviously the iframe needs scripts
|
||||
iframe.sandbox.add("allow-presentation"); // for fullscreen charts
|
||||
iframe.sandbox.add("allow-downloads"); // for downloading charts as image
|
||||
iframe.sandbox.add("allow-forms"); // for forms to submit
|
||||
iframe.sandbox.add("allow-popups"); // for exporting charts as csv
|
||||
// add these ones if it turns out we need them:
|
||||
// iframe.sandbox.add("allow-top-navigation");
|
||||
// iframe.sandbox.add("allow-forms");
|
||||
|
||||
// add the event listener before setting src, to be 100% sure that we capture the load event
|
||||
iframe.addEventListener('load', () => {
|
||||
|
||||
Reference in New Issue
Block a user