1
|
<!DOCTYPE html
|
2
|
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
5
|
<head>
|
6
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
<title>jsTree v.1.0 - themeroller documentation</title>
|
8
|
<script type="text/javascript" src="../_lib/jquery.js"></script>
|
9
|
<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
|
10
|
<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
|
11
|
<script type="text/javascript" src="../jquery.jstree.js"></script>
|
12
|
|
13
|
<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
|
14
|
<link type="text/css" rel="stylesheet" href="!style.css"/>
|
15
|
<script type="text/javascript" src="syntax/!script.js"></script>
|
16
|
|
17
|
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" type="text/css" media="all" />
|
18
|
</head>
|
19
|
<body>
|
20
|
<div id="container">
|
21
|
|
22
|
<h1>jsTree v.1.0 - themeroller plugin</h1>
|
23
|
<h2>Description</h2>
|
24
|
<div id="description">
|
25
|
<p>The <code>themeroller</code> plugin adds support for jQuery UI's themes. Add the plugin as last in your <code>plugins</code> config option. Also make sure that you have included the jquery theme you'd like to use and you should NOT use the native jstree <code>themes</code> plugin.</p>
|
26
|
</div>
|
27
|
|
28
|
<h2 id="configuration">Configuration</h2>
|
29
|
<div class="panel configuration">
|
30
|
<h3>opened</h3>
|
31
|
<p class="meta">A string. Default is <code>"ui-icon-triangle-1-se"</code>.</p>
|
32
|
<p>The class name to use for open nodes (shows the arrow to close).</p>
|
33
|
|
34
|
<h3>closed</h3>
|
35
|
<p class="meta">A string. Default is <code>"ui-icon-triangle-1-e"</code>.</p>
|
36
|
<p>The class name to use for closed nodes (shows the arrow to open).</p>
|
37
|
|
38
|
<h3>item</h3>
|
39
|
<p class="meta">A string. Default is <code>"ui-state-default"</code>.</p>
|
40
|
<p>The class name to use for the actual items.</p>
|
41
|
|
42
|
<h3>item_h</h3>
|
43
|
<p class="meta">A string. Default is <code>"ui-state-hover"</code>.</p>
|
44
|
<p>The class name to use for the hovered item.</p>
|
45
|
|
46
|
<h3>item_a</h3>
|
47
|
<p class="meta">A string. Default is <code>"ui-state-active"</code>.</p>
|
48
|
<p>The class name to use for selected items (UI plugin).</p>
|
49
|
|
50
|
<h3>item_icon</h3>
|
51
|
<p class="meta">A string. Default is <code>"ui-icon-folder-collapsed"</code>.</p>
|
52
|
<p>The class name to use for the default icon.</p>
|
53
|
|
54
|
</div>
|
55
|
|
56
|
<h2 id="demos">Demos</h2>
|
57
|
<div class="panel">
|
58
|
|
59
|
<h3>Using the themeroller plugin</h3>
|
60
|
<div id="demo1" class="demo">
|
61
|
<ul>
|
62
|
<li id="phtml_1">
|
63
|
<a href="#">Root node 1</a>
|
64
|
<ul>
|
65
|
<li id="phtml_2">
|
66
|
<a href="#">Child node 1</a>
|
67
|
</li>
|
68
|
<li id="phtml_3">
|
69
|
<a href="#">Child node 2</a>
|
70
|
</li>
|
71
|
</ul>
|
72
|
</li>
|
73
|
<li id="phtml_4">
|
74
|
<a href="#">Root node 2</a>
|
75
|
</li>
|
76
|
</ul>
|
77
|
</div>
|
78
|
<script type="text/javascript" class="source">
|
79
|
$(function () {
|
80
|
$("#demo1").jstree({
|
81
|
"plugins" : [ "html_data", "ui", "themeroller" ]
|
82
|
});
|
83
|
});
|
84
|
</script>
|
85
|
|
86
|
</div>
|
87
|
|
88
|
<h2 id="api">API</h2>
|
89
|
<div class="panel api">
|
90
|
|
91
|
<h3 id="_themeroller">._themeroller ( obj )</h3>
|
92
|
<p>Fixes the tree on various events by applying the configured classes - used internally only.</p>
|
93
|
|
94
|
</div>
|
95
|
|
96
|
</div>
|
97
|
</body>
|
98
|
</html>
|