]> git.pond.sub.org Git - eow/blob - static/dojo-release-1.1.1/dijit/tests/layout/test_TabContainer_noLayout.html
Comment class stub
[eow] / static / dojo-release-1.1.1 / dijit / tests / layout / test_TabContainer_noLayout.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 doLayout=false Demo</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.ContentPane");
29                 dojo.require("dijit.layout.TabContainer");
30                 dojo.require("dijit.Tooltip");
31                 dojo.require("dijit.form.Button");
32                 dojo.require("dijit.layout.LinkPane");
33                 dojo.require("dojo.parser");    // scan page for widgets and instantiate them
34
35                 function testClose(pane,tab){
36                   return confirm("Please confirm that you want tab "+tab.title+" closed");
37                 }
38         </script>
39 </head>
40 <body>
41
42         <h1 class="testTitle">Dijit layout.TabContainer doLayout=false tests</h1>
43
44         <p>
45         This tests tabs in doLayout=false mode, in which case the tab container's height ==
46         the height of the currently selected tab.
47         </p>
48         <p>With doLayout=false mode tabs to the left or right are not supported and tabs at the bottom are a bit buggy in FireFox.
49         </p>
50
51
52         <!-- 1ST TABCONTAINER -->
53
54         <div id="mainTabContainer" dojoType="dijit.layout.TabContainer" doLayout="false">
55         
56                 <div id="tab1" dojoType="dijit.layout.ContentPane" href="tab1.html" title="Tab 1"></div>
57
58                 <div id="tab2" dojoType="dijit.layout.ContentPane" href="tab2.html" refreshOnShow="true" title="Tab 2" selected="true"></div>
59
60                 <div dojoType="dijit.layout.ContentPane" title="Tab 3">
61                         <h1>I am tab 3</h1>
62                         <p>And I was already part of the page! That's cool, no?</p>
63                         <span id="foo">tooltip on this span</span>
64                         <div dojoType="dijit.Tooltip" connectId="foo">I'm a tooltip!</div>
65                         <button dojoType="dijit.form.Button">I'm a button </button>
66                         <br>
67                         <button dojoType="dijit.form.Button">So am I!</button>
68                         <p>
69                         Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean
70                         semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin
71                         porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi.
72                         Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis.
73                         Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae
74                         risus.
75                         </p>
76                         <p>Aliquam vitae enim. Duis scelerisque metus auctor est venenatis
77                         imperdiet. Fusce dignissim porta augue. Nulla vestibulum. Integer lorem
78                         nunc, ullamcorper a, commodo ac, malesuada sed, dolor. Aenean id mi in
79                         massa bibendum suscipit. Integer eros. Nullam suscipit mauris. In
80                         pellentesque. Mauris ipsum est, pharetra semper, pharetra in, viverra
81                         quis, tellus. Etiam purus. Quisque egestas, tortor ac cursus lacinia,
82                         felis leo adipiscing nisi, et rhoncus elit dolor eget eros. Fusce ut
83                         quam. Suspendisse eleifend leo vitae ligula. Nulla facilisi. Nulla
84                         rutrum, erat vitae lacinia dictum, pede purus imperdiet lacus, ut
85                         semper velit ante id metus. Praesent massa dolor, porttitor sed,
86                         pulvinar in, consequat ut, leo. Nullam nec est. Aenean id risus blandit
87                         tortor pharetra congue. Suspendisse pulvinar.
88                         </p>
89                 </div>
90
91                 <div dojoType="dijit.layout.TabContainer" title="Inlined Sub TabContainer">     
92                         <a dojoType="dijit.layout.LinkPane" href="tab1.html">SubTab 1</a>               
93                         <a dojoType="dijit.layout.LinkPane" href="tab2.html" selected="true">SubTab 2</a>
94                 </div>
95
96                 <a dojoType="dijit.layout.LinkPane" href="tab3.html">Sub TabContainer from href</a>     
97         </div>
98
99         <p>
100         Some text here.  This should appear directly below the TabContainer,
101         and the position will change based on the current height of the TabContainer.
102         </p>
103 </body>
104 </html>