2150 |
mathias |
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
|
2 |
"http://www.w3.org/TR/html4/strict.dtd">
|
|
|
3 |
<html>
|
|
|
4 |
<head>
|
|
|
5 |
<title>Dojox SortList Test</title>
|
|
|
6 |
<style type="text/css">
|
|
|
7 |
@import "../../../dojo/resources/dojo.css";
|
|
|
8 |
@import "../../../dijit/themes/tundra/tundra.css";
|
|
|
9 |
@import "../../../dijit/themes/dijit.css";
|
|
|
10 |
@import "../../../dijit/tests/css/dijitTests.css";
|
|
|
11 |
@import "../SortList/SortList.css";
|
|
|
12 |
</style>
|
|
|
13 |
|
|
|
14 |
<script type="text/javascript" src="../../../dojo/dojo.js" djConfig="isDebug:true, parseOnLoad: true"></script>
|
|
|
15 |
<script type="text/javascript" src="../../../dijit/tests/_testCommon.js"></script>
|
|
|
16 |
<script type="text/javascript" src="../SortList.js"></script>
|
|
|
17 |
<script type="text/javascript">
|
|
|
18 |
// dojo.require("dojox.widget.SortList");
|
|
|
19 |
dojo.require("dijit.layout.TabContainer");
|
|
|
20 |
dojo.require("dijit.layout.SplitContainer");
|
|
|
21 |
dojo.require("dojo.data.ItemFileReadStore");
|
|
|
22 |
dojo.require("dojo.parser"); // scan page for widgets and instantiate them
|
|
|
23 |
</script>
|
|
|
24 |
</head>
|
|
|
25 |
<body>
|
|
|
26 |
|
|
|
27 |
<h1 class="testTitle">Dojox SortList test</h1>
|
|
|
28 |
|
|
|
29 |
<div dojoType="dojo.data.ItemFileReadStore" url="../../../dijit/tests/_data/countries.json" jsId="stateStore"></div>
|
|
|
30 |
|
|
|
31 |
<h3>Simple sortable example</h3>
|
|
|
32 |
<ul dojoType="dojox.widget.SortList" store="stateStore" title="sortable List" style="width:200px; height:200px;"></ul>
|
|
|
33 |
|
|
|
34 |
<h3>Children of a TabContainer</h3>
|
|
|
35 |
<div dojoType="dijit.layout.TabContainer" style="width:300px; height:300px;">
|
|
|
36 |
<div dojoType="dojox.widget.SortList" store="stateStore" title="list 1" heading="countires"></div>
|
|
|
37 |
<div dojoType="dojox.widget.SortList" store="stateStore" title="list 2" heading="states"></div>
|
|
|
38 |
<div dojoType="dojox.widget.SortList" store="stateStore" title="closable" heading="countries" closable="true"></div>
|
|
|
39 |
</div>
|
|
|
40 |
|
|
|
41 |
<h3>Child of a SplitContainer</h3>
|
|
|
42 |
<div dojoType="dijit.layout.SplitContainer" sizerWidth="7" activeSizing="false" orientaton="vertical" style="width:600px; height:200px;">
|
|
|
43 |
<div dojoType="dojox.widget.SortList" store="stateStore" title="list 1" layoutAlign="left" sizeShare="33"></div>
|
|
|
44 |
<div dojoType="dojox.widget.SortList" store="stateStore" title="list 2" layoutAlign="client" sizeShare="33"></div>
|
|
|
45 |
<div dojoType="dojox.widget.SortList" store="stateStore" title="closable" layoutAlign="right" sizeShare="33"></div>
|
|
|
46 |
</div>
|
|
|
47 |
|
|
|
48 |
<br>
|
|
|
49 |
<h3>Raw, degradable UL list:</h3>
|
|
|
50 |
<ul dojoType="dojox.widget.SortList" title="SortList From Markup" sortable="false" style="width:200px; height:200px;">
|
|
|
51 |
<li>one</li>
|
|
|
52 |
<li>two</li>
|
|
|
53 |
<li>three</li>
|
|
|
54 |
<li>four</li>
|
|
|
55 |
<li>five</li>
|
|
|
56 |
<li>six</li>
|
|
|
57 |
<li>four</li>
|
|
|
58 |
<li>five</li>
|
|
|
59 |
<li>six</li>
|
|
|
60 |
<li>four</li>
|
|
|
61 |
<li>five</li>
|
|
|
62 |
<li>six</li>
|
|
|
63 |
<li>four</li>
|
|
|
64 |
<li>five</li>
|
|
|
65 |
<li>six</li>
|
|
|
66 |
</ul>
|
|
|
67 |
|
|
|
68 |
<h3>normal ul:</h3>
|
|
|
69 |
<ul style="width:200px; height:200px;">
|
|
|
70 |
<li>one</li><li>one</li><li>one</li><li>one</li><li>one</li><li>one</li><li>one</li><li>one</li>
|
|
|
71 |
</ul>
|
|
|
72 |
|
|
|
73 |
</body>
|
|
|
74 |
</html>
|