forked from culmat/jsTreeTable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
treeTable.html
67 lines (60 loc) · 1.31 KB
/
treeTable.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>renderTree</title>
<script src="http://code.jquery.com/jquery-2.0.3.js"></script>
<script src="../treeTable.js"></script>
<style type="text/css">
td {
border: 1px solid #999;
padding-left: 8px;
padding-right: 8px;
}
</style>
</head>
<body>
<button onClick='window.location="view-source:" + window.location.href'>View
Source</button>
<button onClick='window.history.back()'>Back</button>
<br />
<table id="table">
<tr>
<th>name</th>
<th>area (km²)</th>
</tr>
<tr data-tt-id="america">
<td>America</td>
<td></td>
</tr>
<tr data-tt-id="NA" data-tt-parent-id="america">
<td>North America</td>
<td></td>
</tr>
<tr data-tt-id="SA" data-tt-parent-id="america">
<td>South America</td>
<td></td>
</tr>
<tr data-tt-id="arg" data-tt-parent-id="SA">
<td>Argentina</td>
<td>2766890</td>
</tr>
<tr data-tt-id="bol" data-tt-parent-id="SA">
<td>Bolivia</td>
<td>1098580</td>
</tr>
<tr data-tt-id="bra" data-tt-parent-id="SA">
<td>Brazil</td>
<td>8511965</td>
</tr>
<tr data-tt-id="para" data-tt-parent-id="bra">
<td>Para</td>
<td>1247689</td>
</tr>
</table>
<script type="text/javascript">
com_github_culmat_jsTreeTable.register(this)
treeTable($('#table'))
</script>
</body>
</html>