Method downloadContent documentation
Downloads a file with given filename from the given content.
Example
```javascript
// Download from a string
bbn.fn.downloadContent('myTextFile.txt', 'Just a string\nThat we can save directly in a file', 'text/plain');
// Download from a file
let file = new File(["foo"], "foo.txt", {type: "text/plain"});
bbn.fn.downloadContent('foo.txt', file);
```
Downloads a file with given filename from the given content. - Creates a link putting in href a URL Object Blob made of the given content,
which can be a canvas, a file or a blob object, or just a string.
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions