download

downloads a file from Blob data

void download(object data,string filename);

Parameters

dataobjectBlob data for the file to download
filenamestringname of resulting file

Example

// var pdf = ..some created pdf data..
var blob = new Blob([pdf.toString()], { type: "application/pdf" });
webix.html.download(blob, "myfile.pdf");

Back to top