-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
42 lines (37 loc) · 1.13 KB
/
Copy pathindex.html
File metadata and controls
42 lines (37 loc) · 1.13 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>TreeGrid test</title>
<link rel="stylesheet" href="src/treegrid.css"/>
<script src="src/treegrid.js"></script>
<script src="node_modules/jquery/dist/jquery.js"></script>
<style>
body {
font-family: Tahoma, sans-serif;
font-size: 11px;
}
#grid2 {
width: 800px;
height: 300px;
}
</style>
</head>
<body>
<h2>Test 1</h2>
<div id="grid"></div>
<h2>Test 2</h2>
<div id="grid2"></div>
<h2>Test 3</h2>
To see tree sample run <a href="https://github.com/miptleha/treegrid-core">server application</a>.<br/>
Column sorting in grids also requires server component.
<script>
var g = new TreeGrid({target: $('#grid'), url: 'test/gdp.json', method: 'get'});
g.init();
g = new TreeGrid({target: $('#grid2'), url: 'test/employees.json', method: 'get'});
g.init();
</script>
</body>
</html>