forked from myliang/x-spreadsheet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (43 loc) · 1.14 KB
/
index.html
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
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body onload="load()">
<div id="x-spreadsheet-demo"></div>
<script>
function load(){
x.spreadsheet(document.getElementById('x-spreadsheet-demo'))
.loadData({
freeze: [2, 2],
borders: [
['thin', '#0366d6'],
],
styles: [
{ bgcolor: '#f4f5f8', wrapText: true, color: '#900b09', bbi: 0, bti: 0, bri: 0, bli: 0 },
],
merges: [
[[2, 2], [3, 3]],
],
cellmm: {
1: {
0: { text: 'testingtesttestetst' },
2: { text: 'testing' },
},
2: {
0: { text: 'render', si: 0 },
1: { text: 'Hello' },
2: { text: 'haha', merge: [1, 1] },
3: { text: 'overlayerll' },
},
8: {
8: { text: 'border test', si: 0 },
}
},
}).change((cdata) => console.log(cdata));
}
</script>
</body>
</html>