forked from olton/metroui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest2.html
More file actions
56 lines (48 loc) · 1.95 KB
/
test2.html
File metadata and controls
56 lines (48 loc) · 1.95 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="description" content="Metro, a sleek, intuitive, and powerful framework for faster and easier web development for Windows Metro Style.">
<meta name="keywords" content="HTML, CSS, JS, JavaScript, framework, metro, front-end, frontend, web development">
<meta name="author" content="Sergey Pimenov and Metro UI CSS contributors">
<link rel='shortcut icon' type='image/x-icon' href='favicon.ico' />
<title>Metro UI CSS - The front-end framework for developing projects on the web in Windows Metro Style</title>
<link href="css/metro.css" rel="stylesheet">
<link href="css/metro-icons.css" rel="stylesheet">
<link href="css/docs.css" rel="stylesheet">
<script src="js/jquery-2.1.3.min.js"></script>
<script src="js/metro.js"></script>
<script src="js/docs.js"></script>
<script src="js/prettify/run_prettify.js"></script>
<script>
function tree_add_leaf_checkbox_example(){
var tree = $("#test_tree").data("treeview");
var node = tree.element.find('li:nth-child(1)');
var i;
for(i=0;i<10;i++) {
tree.addLeaf(node, "Leaf item " + i, {
mode: 'checkbox'
});
}
node.addClass('collapsed');
}
$(function(){
tree_add_leaf_checkbox_example();
})
</script>
</head>
<body>
<div class="container page-content">
<h1>Tree with collapsed state</h1>
<div style="width: 300px">
<div class="treeview" data-role="treeview" id="test_tree">
<ul>
<li><span class="leaf">Root</span></li>
</ul>
</div>
</div>
</div>
</body>
</html>