Permalink
Branch: master
Find file Copy path
cde2244 Feb 13, 2019
1 contributor

Users who have contributed to this file

41 lines (40 sloc) 1.12 KB
<!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('#x-spreadsheet-demo')
.loadData({
freeze: [2, 2],
styles: [
{ bgcolor: '#f4f5f8', wrapText: true, color: '#900b09', bb: ['thin', '#0366d6'], bt: ['thin', '#0366d6'], br: ['thin', '#0366d6'], bl: ['thin', '#0366d6'] },
],
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>