forked from editor-js/table
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
41 lines (30 loc) · 661 Bytes
/
test.html
File metadata and controls
41 lines (30 loc) · 661 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
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test of Table</title>
<style>
body, html {
margin: 0;
}
body {
display: flex;
flex-direction: column;
align-items: center;
}
.block {
width: 800px;
margin-top: 10px;
}
</style>
</head>
<body>
<div class="block"></div>
<script src="dist/bundle.js"></script>
<script>
const table = new Table({data: {}, config: {}, api: {}});
const block = document.querySelector(".block");
block.appendChild(table.render());
</script>
</body>
</html>