Triggers a client-side download of a file, using a Blob object. To do this, a temporary anchor element is created, appended to the document body, immediate triggered to download, then removed from the document body.
Blob
The data to be downloaded.
The name of the file to be downloaded.
The MIME type of the file to be downloaded.
blobDownload(data, 'package.xml', 'text/xml'); Copy
blobDownload(data, 'package.xml', 'text/xml');
Triggers a client-side download of a file, using a
Blob
object. To do this, a temporary anchor element is created, appended to the document body, immediate triggered to download, then removed from the document body.