DmitrMakeev
commited on
Update data_gc_tab.html
Browse files- data_gc_tab.html +2 -15
data_gc_tab.html
CHANGED
@@ -7,8 +7,7 @@
|
|
7 |
<link href="https://unpkg.com/[email protected]/dist/css/tabulator.min.css" rel="stylesheet">
|
8 |
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/js/tabulator.min.js"></script>
|
9 |
<script type="text/javascript" src="https://oss.sheetjs.com/sheetjs/xlsx.full.min.js"></script>
|
10 |
-
|
11 |
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf-autotable/3.5.20/jspdf.plugin.autotable.min.js"></script>
|
12 |
<style>
|
13 |
body {
|
14 |
font-family: Arial, sans-serif;
|
@@ -168,8 +167,7 @@
|
|
168 |
<button id="download-csv">Download CSV</button>
|
169 |
<button id="download-json">Download JSON</button>
|
170 |
<button id="download-xlsx">Download XLSX</button>
|
171 |
-
|
172 |
-
<button id="download-html">Download HTML</button>
|
173 |
</div>
|
174 |
<div id="example-table"></div>
|
175 |
|
@@ -282,18 +280,7 @@ document.getElementById("download-xlsx").addEventListener("click", function(){
|
|
282 |
table.download("xlsx", "data.xlsx", {sheetName:"My Data"});
|
283 |
});
|
284 |
|
285 |
-
//trigger download of data.pdf file
|
286 |
-
document.getElementById("download-pdf").addEventListener("click", function(){
|
287 |
-
table.download("pdf", "data.pdf", {
|
288 |
-
orientation:"portrait", //set page orientation to portrait
|
289 |
-
title:"Example Report", //add title to report
|
290 |
-
});
|
291 |
-
});
|
292 |
|
293 |
-
//trigger download of data.html file
|
294 |
-
document.getElementById("download-html").addEventListener("click", function(){
|
295 |
-
table.download("html", "data.html", {style:true});
|
296 |
-
});
|
297 |
})
|
298 |
.catch(error => console.error('Error fetching data:', error));
|
299 |
});
|
|
|
7 |
<link href="https://unpkg.com/[email protected]/dist/css/tabulator.min.css" rel="stylesheet">
|
8 |
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/js/tabulator.min.js"></script>
|
9 |
<script type="text/javascript" src="https://oss.sheetjs.com/sheetjs/xlsx.full.min.js"></script>
|
10 |
+
|
|
|
11 |
<style>
|
12 |
body {
|
13 |
font-family: Arial, sans-serif;
|
|
|
167 |
<button id="download-csv">Download CSV</button>
|
168 |
<button id="download-json">Download JSON</button>
|
169 |
<button id="download-xlsx">Download XLSX</button>
|
170 |
+
|
|
|
171 |
</div>
|
172 |
<div id="example-table"></div>
|
173 |
|
|
|
280 |
table.download("xlsx", "data.xlsx", {sheetName:"My Data"});
|
281 |
});
|
282 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
283 |
|
|
|
|
|
|
|
|
|
284 |
})
|
285 |
.catch(error => console.error('Error fetching data:', error));
|
286 |
});
|