Export output targets: download, Blob, string or stream
Returns export results in multiple ways: trigger a download, return a Blob, return a string for text formats, or hand chunks to a callback. This lets apps upload exports to servers, attach them to emails or store them, instead of always forcing a download.
Planned. This page shows the specification from issue #200. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Grid with an output selector and a fake 'upload' log panel.
Expected behavior
'blob' logs its size and MIME type. 'string' shows the text in the panel, and is disabled for xlsx and pdf. 'download' saves the file.
Planned API surface
exportOptions.output'download' | 'blob' | 'string' | 'callback'exportOptions.onChunkexportData() returns PromiseexportOptions.mimeTypeAcceptance criteria
- exportData resolves with {blob|text, fileName, mimeType, rowCount, warnings}. (pending)
- 'string' output for binary formats rejects with a descriptive error. (pending)
- The default MIME types are correct for each format. (pending)
- The 'download' output works without popups and revokes object URLs afterwards. (pending)
- The promise rejects with an AbortError when the export is cancelled. (pending)