Closed huangwei16800 closed 5 years ago
Try js-xlsx demo npm install xlsx
export
const ws: XLSX.WorkSheet = XLSX.utils.json_to_sheet(this.dataManager.rows);
import
let data = <any[][]>(XLSX.utils.sheet_to_json(ws, {header: 1}));
const labels = data[0]
const output = data.slice(1).map(item => item.reduce((obj, val, index) => {
obj[labels[index]] = val
return obj
}, {}));
this.dataManager.rows = output;
thank your!
this data table is so nice, i like it, i will use in my project (MIS SYSTEM), but how can export to Excel . because My user always export data to Excel