-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
80 lines (70 loc) · 3.09 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>demo_app</title>
<meta name="description" content="">
<meta name="author" content="maoliang">
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="stylesheet" href="demo_app.css">
</head>
<body>
<script type="text/x-handlebars"
data-template-name="components/tree-grid-expand-icon">
<div {{bind-attr class="isExpanded:tree-expanded:tree-collapsed"}}
{{action "toggleExpansion" on="click"}}>
</div>
</script>
<script type="text/x-handlebars" data-template-name="components/tree-grid-row">
<td {{bind-attr class=":grid-cell"}}>
<div {{bind-attr class=":expansion-cell" style="left_margin"}}>
<div {{bind-attr class="hasChildren:show-tree-operation:hide-tree-operation"}}>
{{tree-grid-expand-icon isExpanded=isExpanded
action="toggleExpansion"}}
</div>
<div {{bind-attr class=":expansion-cell-content"}}>
{{row.name}}
</div>
</div>
</td>
<td {{bind-attr class=":grid-cell"}}>{{row.detail}}</td>
</script>
<script type="text/x-handlebars" data-template-name="components/tree-grid">
<table class="grid-table">
<thead class="grid-header">
<tr>
{{#each column in columns itemController="treeGridColumn"}}
<th scope="col" class="grid-column" {{bind-attr width="width"}}>{{title}}</th>
{{/each}}
</tr>
</thead>
<tbody>
{{#each row in rows}}
{{tree-grid-row row=row action="selected"}}
{{/each}}
</tbody>
</table>
</script>
<script type="text/x-handlebars" data-template-name="index">
{{tree-grid columns=columns rows=rows}}
</script>
<script src="js/libs/jquery-1.10.2.min.js"></script>
<script src="js/libs/handlebars-1.0.0.js"></script>
<script src="js/libs/ember.js"></script>
<script src="js/libs/ember-data.js"></script>
<script src="js/application.js"></script>
<script src="js/router.js"></script>
<script src="js/models/treeGridModel.js"></script>
<script src="js/components/treeGrid_component.js"></script>
<script src="js/components/treeGridRow_component.js"></script>
<script src="js/components/treeGridExpandIcon_component.js"></script>
<script src="js/controllers/treeGridColumn_controller.js"></script>
<script src="js/models/fixture.js"></script>
</body>
</html>