View as Markdown

API reference: @salmonui/data-grid

downloadBlobfunction

import { downloadBlob } from '@salmonui/data-grid';
function downloadBlob(data: Blob | ExportFile<Uint8Array | string>, fileName?: string, doc?: Document | undefined): boolean;

Saves a Blob or an export file through a temporary object URL. Returns false outside a browser (SSR, workers without a document), so it is safe to call anywhere.