MCPcopy Create free account
hub / github.com/Muhammadsiddiq-code/Admin-dashboard / downloadCSV

Function downloadCSV

app.js:924–936  ·  view source on GitHub ↗
(csv, filename)

Source from the content-addressed store, hash-verified

922}
923
924function downloadCSV(csv, filename) {
925 const blob = new Blob([csv], { type: "text/csv;charset=utf-8;" })
926 const link = document.createElement("a")
927 const url = URL.createObjectURL(blob)
928
929 link.setAttribute("href", url)
930 link.setAttribute("download", filename)
931 link.style.visibility = "hidden"
932
933 document.body.appendChild(link)
934 link.click()
935 document.body.removeChild(link)
936}
937
938// AI Assistant functions
939function sendAIMessage() {

Callers 1

exportDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected