Download CSV

PHOTO EMBED

Sun Dec 12 2021 10:47:43 GMT+0000 (UTC)

Saved by @vincentleoooo #javascript

function download(content, filename, contentType) {
  if (!contentType) contentType = "application/octet-stream";
  var a = document.createElement("a");
  var blob = new Blob([content], { type: contentType });
  a.href = window.URL.createObjectURL(blob);
  a.download = filename;
  a.click();
}

download(csvContent, 'listSimulationRunTimes.csv', 'text/csv');
content_copyCOPY