summaryrefslogtreecommitdiffstatshomepage
path: root/includes/js/dojox/layout/tests/test_ExpandoPane_more.html
blob: aed990e76971fde84ea5fccec82c8b206425b96d (plain)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<title>dojox.layout.ExpandoPane</title>

	<style type="text/css">
		body, html {
			height:100%;
		}
	</style>
	<link rel="stylesheet" href="../resources/ExpandoPane.css" />
	<link rel="stylesheet" href="../../../dijit/tests/css/dijitTests.css" />

	<script type="text/javascript" src="../../../dojo/dojo.js" djConfig="parseOnLoad:true, isDebug:true"></script>
	<script type="text/javascript" src="../../../dijit/tests/_testCommon.js"></script>

	<script src="../ExpandoPane.js" type="text/javascript"></script>

	<script type="text/javascript">
		dojo.require("dijit.layout.TabContainer");
		dojo.require("dijit.Tree");
		dojo.require("dijit.layout.ContentPane");
		dojo.require("dijit.layout.BorderContainer");
		dojo.require("dojox.fx.easing");
	</script>
</head>
<body>

	<h1>Basic ExpandoPane tests</h1>

	<h2>Left:</h2>
	<div dojoType="dijit.layout.BorderContainer" style="height:275px">
		<div dojoType="dojox.layout.ExpandoPane" title="leftTest" region="left" maxWidth="175" style="width:175px; background:red">
			foo
		</div>
		<div dojoType="dijit.layout.TabContainer" region="center">
			<div dojoType="dijit.layout.ContentPane" title="tab 1" href="_lorem.html"></div>
			<div dojoType="dijit.layout.ContentPane" title="tab 2" href="_lorem.html"></div>
		</div>
	</div>

	<h2>Right:</h2>
	<div dojoType="dijit.layout.BorderContainer" style="height:275px">
		<div dojoType="dojox.layout.ExpandoPane" title="rightTest" region="right" maxWidth="175" style="width:175px; background:red">
			<div dojoType="dijit.layout.TabContainer" tabPosition="bottom" attachParent="true">
				<div dojoType="dijit.layout.ContentPane" attachParent="true" title="tab 1" href="_lorem.html"></div>
				<div dojoType="dijit.layout.ContentPane" title="tab 2" href="_lorem.html"></div>
			</div>
		</div>
		<div dojoType="dijit.layout.TabContainer" region="center">
			<div dojoType="dijit.layout.ContentPane" title="tab 1" href="_lorem.html"></div>
			<div dojoType="dijit.layout.ContentPane" title="tab 2" href="_lorem.html"></div>
		</div>
	</div>

	<h2>Top (easeIn="dojox.fx.easing.bounceOut" duration="1200"):</h2>
	<div dojoType="dijit.layout.BorderContainer" style="height:275px">
		<div easeIn="dojox.fx.easing.bounceOut" duration="1200" dojoType="dojox.layout.ExpandoPane" title="topTest" region="top" maxHeight="75" style="height:75px; background:red">
			foo
		</div>
		<div region="center" dojoType="dijit.layout.ContentPane" href="_lorem.html"></div>
	</div>

	<h2>Bottom:</h2>
	<div dojoType="dijit.layout.BorderContainer" style="height:375px; border:8px solid #333;">
		<div dojoType="dojox.layout.ExpandoPane" title="bottomTest" region="bottom" maxHeight="75" style="height:75px; width:100%; background:red;">
			foo
		</div>
		<div region="center" dojoType="dijit.layout.ContentPane" href="_lorem.html"></div>
	</div>

	<h2>Bottom/Left:</h2>
	<div dojoType="dijit.layout.BorderContainer" style="height:375px; border:8px solid #333;">
		<div dojoType="dojox.layout.ExpandoPane" title="leftTest" region="left" maxWidth="175" style="width:175px; background:red;">
			foo
		</div>
		<div dojoType="dojox.layout.ExpandoPane" title="bottomTest" region="bottom" maxHeight="75" style="height:75px; width:100%; background:red;">
			foo
		</div>
		<div region="center" dojoType="dijit.layout.ContentPane" href="_lorem.html"></div>
	</div>

	<h2>Top/Left/Right</h2>	
	<div dojoType="dijit.layout.BorderContainer" style="height:375px; border:8px solid #333;">
		<div dojoType="dojox.layout.ExpandoPane" title="leftTest" region="left" maxWidth="175" style="width:175px; background:red;">
			foo
		</div>
		<div dojoType="dojox.layout.ExpandoPane" title="leftTest" region="right" maxWidth="175" style="width:175px; background:red;">
			foo
		</div>
		<div dojoType="dojox.layout.ExpandoPane" title="bottomTest" region="bottom" maxHeight="75" style="height:75px; width:100%; background:red;">
			foo
		</div>
		<div region="center" dojoType="dijit.layout.ContentPane" href="_lorem.html"></div>
	</div>	

	<h2>Top/Left/Right + splitters</h2>	
	<div dojoType="dijit.layout.BorderContainer" style="height:375px; border:8px solid #333;">
		<div splitter="true" dojoType="dojox.layout.ExpandoPane" title="leftTest" region="left" maxWidth="175" style="width:175px; background:red;">
			foo
		</div>
		<div splitter="true" dojoType="dojox.layout.ExpandoPane" title="leftTest" region="right" maxWidth="175" style="width:175px; background:red;">
			foo
		</div>
		<div splitter="true" dojoType="dojox.layout.ExpandoPane" title="bottomTest" region="bottom" maxHeight="75" style="height:75px; width:100%; background:red;">
			foo
		</div>
		<div region="center" dojoType="dijit.layout.ContentPane" href="_lorem.html"></div>
	</div>	


</body>
</html>