]> git.pond.sub.org Git - eow/blob - static/dojo-release-1.1.1/dijit/tests/layout/test_TabContainerTitlePane.html
Comment class stub
[eow] / static / dojo-release-1.1.1 / dijit / tests / layout / test_TabContainerTitlePane.html
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>TabContainer Nested TitlePane Test</title>
6
7         <style type="text/css">
8                 @import "../../../dojo/resources/dojo.css";
9                 @import "../css/dijitTests.css";
10
11                 body {
12                         font-family : sans-serif;
13                         margin:20px;
14                 }
15
16                 /* add padding to each contentpane inside the tab container, and scrollbar if necessary */
17                 .dojoTabPane {
18                         padding : 10px 10px 10px 10px;
19                         overflow: auto;
20                 }
21         </style>
22         
23         <script type="text/javascript" src="../../../dojo/dojo.js"
24                 djConfig="isDebug: true, parseOnLoad: true"></script>
25         <script type="text/javascript" src="../_testCommon.js"></script>
26
27         <script type="text/javascript">
28                 dojo.require("dijit.layout.TabContainer");
29                 dojo.require("dijit.TitlePane");
30                 dojo.require("dojo.parser");    // scan page for widgets and instantiate them
31
32                 startTime = new Date();
33                 dojo.addOnLoad(function(){
34                         var elapsed = new Date().getTime() - startTime;
35                         var p = document.createElement("p");
36                         p.appendChild(document.createTextNode("Widgets loaded in " + elapsed + "ms"));
37                         document.body.appendChild(p);
38                         // dojo.parser.parse(dojo.body());
39                 });
40                 
41         </script>
42 </head>
43 <body>
44
45         <h1 class="testTitle">Dijit layout.TabContainer nested TitlePane tests</h1>
46
47         <div id="mainTabContainer" dojoType="dijit.layout.TabContainer" style="width: 100%; height: 20em;">
48
49                 <div dojoType="dijit.layout.ContentPane" title="Tab 1">
50                         <h1>I am tab 1</h1>
51                         <div dojoType="dijit.TitlePane" title="Title pane" width="300">
52                                 <p>This is a title pane, containing another tab container ...</p>
53                                 <p>
54                                         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...
55                                 </p>
56                                 <div id="subTabContainer" dojoType="dijit.layout.TabContainer" style="width: 100%; height: 20em;">
57                                         <div id="tab3" dojoType="dijit.layout.ContentPane" href="tab1.html" title="Tab 3"></div>
58                                         <div id="tab4" dojoType="dijit.layout.ContentPane" href="tab2.html" refreshOnShow="true" title="Tab 4" selected="true"></div>
59                                 </div>
60                         </div>
61                 </div>
62                 <div id="tab2" dojoType="dijit.layout.ContentPane" href="tab2.html" title="Tab 2"></div>
63
64         </div>
65
66
67         <h3>Typical rendering time</h3>
68         <table border=1>
69           <tr><th>IE</th><th>Firefox (mac)</th></tr>
70           <tr><td>1719</td><td>922</td></tr>
71         </table>
72         <h3>Rendering time</h3>
73
74 </body>
75 </html>