summaryrefslogtreecommitdiff
path: root/includes/js/dijit/tests/layout/test_TabContainerTitlePane.html
blob: 139eb2b5aca3eb6f71b9eced44ddcfafc8eca434 (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
		"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<title>TabContainer Nested TitlePane Test</title>

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

		body {
			font-family : sans-serif;
			margin:20px;
		}

		/* add padding to each contentpane inside the tab container, and scrollbar if necessary */
		.dojoTabPane {
			padding : 10px 10px 10px 10px;
			overflow: auto;
		}
	</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.layout.TabContainer");
		dojo.require("dijit.TitlePane");
		dojo.require("dojo.parser");	// scan page for widgets and instantiate them

		startTime = new Date();
		dojo.addOnLoad(function(){
			var elapsed = new Date().getTime() - startTime;
			var p = document.createElement("p");
			p.appendChild(document.createTextNode("Widgets loaded in " + elapsed + "ms"));
			document.body.appendChild(p);
			// dojo.parser.parse(dojo.body());
		});
		
	</script>
</head>
<body>

	<h1 class="testTitle">Dijit layout.TabContainer nested TitlePane tests</h1>

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

		<div dojoType="dijit.layout.ContentPane" title="Tab 1">
			<h1>I am tab 1</h1>
			<div dojoType="dijit.TitlePane" title="Title pane" width="300">
				<p>This is a title pane, containing another tab container ...</p>
				<p>
					Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Quisque iaculis, nulla id semper faucibus, pede tellus nonummy magna, vitae adipiscing orci arcu ut augue. Nunc condimentum, magna a vestibulum convallis, libero purus pulvinar orci, sed vestibulum urna sem ut pede. More Ipsum...
				</p>
				<div id="subTabContainer" dojoType="dijit.layout.TabContainer" style="width: 100%; height: 20em;">
					<div id="tab3" dojoType="dijit.layout.ContentPane" href="tab1.html" title="Tab 3"></div>
					<div id="tab4" dojoType="dijit.layout.ContentPane" href="tab2.html" refreshOnShow="true" title="Tab 4" selected="true"></div>
				</div>
			</div>
		</div>
		<div id="tab2" dojoType="dijit.layout.ContentPane" href="tab2.html" title="Tab 2"></div>

	</div>


	<h3>Typical rendering time</h3>
	<table border=1>
	  <tr><th>IE</th><th>Firefox (mac)</th></tr>
	  <tr><td>1719</td><td>922</td></tr>
	</table>
	<h3>Rendering time</h3>

</body>
</html>