-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.js
More file actions
33 lines (30 loc) · 791 Bytes
/
Copy pathsample.js
File metadata and controls
33 lines (30 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { ExcelWriter } from "./ExcelWriter.js";
function typedStyle() {
let eWriter = new ExcelWriter();
eWriter.addRow([
{ Type: "string", Data: "First Name" },
{ Type: "string", Data: "Last Name" }
]);
eWriter.addRow([
{ Type: "string", Data: "John" },
{ Type: "string", Data: "Doe" }
]);
eWriter.addRow([
{ Type: "string", Data: "May" },
{ Type: "string", Data: "Foe" }
]);
eWriter.addRow([
{ Type: "string", Data: "3" },
{ Type: "string", Data: "4" }
]);
eWriter.addRow([{ Type: "number", Data: 4 }, { Type: "number", Data: 3 }]);
eWriter.addRow([
{ Type: "number", Data: "test" },
{ Type: "number", Data: "test2" }
]);
eWriter.save("export.xlsx");
}
function test() {
alert("Hello");
}
window.clickfunction = test;