mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Download CSV/XLSX from web
This commit is contained in:
@@ -235,6 +235,18 @@ function addTableElement(blenderId, csvData, filename) {
|
||||
},
|
||||
});
|
||||
|
||||
var downloadCsv = $('<a><i class="fa-solid fa-file-csv"></i></a>')
|
||||
.css("margin-left", "10px")
|
||||
.css("cursor", "pointer");
|
||||
tableTitle.append(downloadCsv);
|
||||
downloadCsv.on('click', function() { table.download("csv", "data.csv"); })
|
||||
|
||||
var downloadExcel = $('<a><i class="fa-solid fa-file-excel"></i></a>')
|
||||
.css("margin-left", "10px")
|
||||
.css("cursor", "pointer");
|
||||
tableTitle.append(downloadExcel);
|
||||
downloadExcel.on('click', function() { table.download("xlsx", "data.xlsx"); })
|
||||
|
||||
table.on("rowSelected", function (row) {
|
||||
var index = row.getIndex(); // the guid of the object
|
||||
|
||||
|
||||
Reference in New Issue
Block a user