aboutsummaryrefslogtreecommitdiff
path: root/includes/js/dijit/tests/layout/test_BorderContainer_complex.html
blob: 784171ce356bb1f9855103d34da91eb9571705c9 (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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<title>dijit.layout.BorderContainer Test - complex layout</title>

	<style type="text/css">
		@import "../../../dojo/resources/dojo.css";
		@import "../css/dijitTests.css";
	</style>

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

	<script type="text/javascript">
		dojo.require("dijit.Editor");
		dojo.require("dijit.layout.AccordionContainer");
		dojo.require("dijit.layout.TabContainer");
		dojo.require("dijit.layout.LinkPane");
		dojo.require("dijit.Tooltip");
		dojo.require("dijit.layout.BorderContainer");
		dojo.require("dijit.layout.SplitContainer");
		dojo.require("dijit.layout.ContentPane");
		dojo.require("dijit.form.FilteringSelect");
	</script>
</head>
<body>

	<h2 class="testTitle">dijit.layout.BorderContainer tests</h2>

	<p>Complex layout:</p>

<div dojoType="dijit.layout.BorderContainer"
	style="border: 2px solid black; width: 90%; height: 300px; padding: 10px;">
	<div dojoType="dijit.layout.AccordionContainer" duration="200"
		region="left" style="background-color: #acb386; width: 400px;" splitter="true"
		style="float: left; width: 400px; height: 300px; overflow: hidden">
		<div dojoType="dijit.layout.AccordionPane" title="a">
			left bar
		</div>
		<div dojoType="dijit.layout.AccordionPane" title="b">
			<p>
				Nunc consequat nisi vitae quam. Suspendisse sed nunc. Proin
				suscipit porta magna. Duis accumsan nunc in velit. Nam et nibh.
				Nulla facilisi. Cras venenatis urna et magna. Aenean magna mauris,
				bibendum sit amet, semper quis, aliquet nec, sapien.  Aliquam
				aliquam odio quis erat. Etiam est nisi, condimentum non, lacinia
				ac, vehicula laoreet, elit. Sed interdum augue sit amet quam
				dapibus semper. Nulla facilisi. Pellentesque lobortis erat nec
				quam.
			</p>
			<p>
				Sed arcu magna, molestie at, fringilla in, sodales eu, elit.
				Curabitur mattis lorem et est. Quisque et tortor. Integer bibendum
				vulputate odio. Nam nec ipsum. Vestibulum mollis eros feugiat
				augue. Integer fermentum odio lobortis odio. Nullam mollis nisl non
				metus. Maecenas nec nunc eget pede ultrices blandit. Ut non purus
				ut elit convallis eleifend. Fusce tincidunt, justo quis tempus
				euismod, magna nulla viverra libero, sit amet lacinia odio diam id
				risus. Ut varius viverra turpis. Morbi urna elit, imperdiet eu,
				porta ac, pharetra sed, nisi. Etiam ante libero, ultrices ac,
				faucibus ac, cursus sodales, nisl. Praesent nisl sem, fermentum eu,
				consequat quis, varius interdum, nulla. Donec neque tortor,
				sollicitudin sed, consequat nec, facilisis sit amet, orci. Aenean
				ut eros sit amet ante pharetra interdum.
			</p>
		</div>
		<div dojoType="dijit.layout.AccordionPane" title="c">
			<p>The quick brown fox jumps over the lazy dog.  The quick brown fox jumps over the lazy dog.  The quick brown fox jumps over the lazy dog.</p>
		</div>
	</div>

	<div dojoType="dijit.layout.AccordionContainer" duration="200"
		region="right" style="background-color: #acb386; width: 200px;"
		style="float: left; width: 200px; height: 300px; overflow: hidden">
		<div dojoType="dijit.layout.AccordionPane" title="a">
			right bar
		</div>
		<div dojoType="dijit.layout.AccordionPane" title="b">
			<p>
				Nunc consequat nisi vitae quam. Suspendisse sed nunc. Proin
				suscipit porta magna. Duis accumsan nunc in velit. Nam et nibh.
				Nulla facilisi. Cras venenatis urna et magna. Aenean magna mauris,
				bibendum sit amet, semper quis, aliquet nec, sapien.  Aliquam
				aliquam odio quis erat. Etiam est nisi, condimentum non, lacinia
				ac, vehicula laoreet, elit. Sed interdum augue sit amet quam
				dapibus semper. Nulla facilisi. Pellentesque lobortis erat nec
				quam.
			</p>
			<p>
				Sed arcu magna, molestie at, fringilla in, sodales eu, elit.
				Curabitur mattis lorem et est. Quisque et tortor. Integer bibendum
				vulputate odio. Nam nec ipsum. Vestibulum mollis eros feugiat
				augue. Integer fermentum odio lobortis odio. Nullam mollis nisl non
				metus. Maecenas nec nunc eget pede ultrices blandit. Ut non purus
				ut elit convallis eleifend. Fusce tincidunt, justo quis tempus
				euismod, magna nulla viverra libero, sit amet lacinia odio diam id
				risus. Ut varius viverra turpis. Morbi urna elit, imperdiet eu,
				porta ac, pharetra sed, nisi. Etiam ante libero, ultrices ac,
				faucibus ac, cursus sodales, nisl. Praesent nisl sem, fermentum eu,
				consequat quis, varius interdum, nulla. Donec neque tortor,
				sollicitudin sed, consequat nec, facilisis sit amet, orci. Aenean
				ut eros sit amet ante pharetra interdum.
			</p>
		</div>
		<div dojoType="dijit.layout.AccordionPane" title="c">
			<p>The quick brown fox jumps over the lazy dog.  The quick brown fox jumps over the lazy dog.  The quick brown fox jumps over the lazy dog.</p>
		</div>
	</div>
	<div dojoType="dijit.layout.ContentPane" region="top" style="background-color: #b39b86; height: 100px;" splitter="true">

		<div id="mainTabContainer" dojoType="dijit.layout.TabContainer" style="width: 100%; height: 20em;">

			<div id="tab1" dojoType="dijit.layout.ContentPane" href="../../../dijit/tests/layout/tab1.html" title="Tab 1"></div>

			<div id="tab2" dojoType="dijit.layout.ContentPane" href="../../../dijit/tests/layout/tab2.html" refreshOnShow="true" title="Tab 2" selected="true"></div>

			<div dojoType="dijit.layout.ContentPane" title="Tab 3">
				<h1>I am tab 3</h1>
				<p>And I was already part of the page! That's cool, no?</p>
				<p id="foo">tooltip on this paragraph</p>
				<div dojoType="dijit.Tooltip" connectId="foo">I'm a tooltip!</div>
				<button dojoType="dijit.form.Button">I'm a button </button>
				<br>
				<button dojoType="dijit.form.Button">So am I!</button>
				<p>
				Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean
				semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin
				porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi.
				Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis.
				Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae
				risus.
				</p>
				<p>Aliquam vitae enim. Duis scelerisque metus auctor est venenatis
				imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem
				nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in
				massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In
				pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra
				quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia,
				felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut
				quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla
				rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut
				semper velit ante id metus. Praesent massa dolor, porttitor sed,
				pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit
				tortor pharetra congue. Suspendisse pulvinar.
				</p>
			</div>

			<div dojoType="dijit.layout.TabContainer" title="Inlined Sub TabContainer">	
				<a dojoType="dijit.layout.LinkPane" href="../../../dijit/tests/layout/tab1.html">SubTab 1</a>		
				<a dojoType="dijit.layout.LinkPane" href="../../../dijit/tests/layout/tab2.html" selected="true">SubTab 2</a>
			</div>

			<a dojoType="dijit.layout.LinkPane" href="../../../dijit/tests/layout/tab3.html">Sub TabContainer from href</a>	

			<a dojoType="dijit.layout.LinkPane" href="../../../dijit/tests/layout/tab4.html">SplitContainer from href</a>	

		</div>
	</div>
	<div dojoType="dijit.layout.ContentPane" region="bottom" style="background-color: #b39b86; height: 100px;">
		<div style="border: 1px solid black;">
			<div dojoType="dijit.Editor" id="editor1"><p>bottom bar (edit me)</p></div>
		</div>
	</div>
	<div dojoType="dijit.layout.ContentPane" region="center" style="background-color: #f5ffbf; padding: 10px;">
		main panel with <a href="http://www.dojotoolkit.org/">a link</a>.<br />
		(to check we're copying children around properly).<br />
		<select dojoType="dijit.form.FilteringSelect">
			<option value="1">foo</option>
			<option value="2">bar</option>
			<option value="3">baz</option>
		</select>
		Here's some text that comes AFTER the combo box.
	</div>
</div>

</body>
</html>