1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
\r
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
\r
5 <title>Tabs Example</title>
\r
6 <link rel="stylesheet" type="text/css" href="../../cssX/roojs-all.css"/>
7 <link rel="stylesheet" type="text/css" href="../../cssX/xtheme-slate.css"/>
9 <script type="text/javascript" src="../../roojs-all.js"></script>
13 <!-- Tabs Example Files -->
\r
14 <link rel="stylesheet" type="text/css" href="tabs-example.css" />
\r
15 <script type="text/javascript" src="tabs-example.js"></script>
\r
17 <!-- Common Styles for the examples -->
\r
18 <link rel="stylesheet" type="text/css" href="../examples.css" />
\r
21 <script type="text/javascript" src="../examples.js"></script><!-- EXAMPLES -->
\r
23 <h1>Tab Panel Examples</h1>
\r
24 <p>Note that the js and css is not minified so it is readable. See <a href="tabs-example.js">tabs-example.js</a> for the tab creation code
\r
25 and <a href="tabs-example.css">tabs-example.css</a> for the css.</p>
\r
27 <h3>Tabs without fixed height that resize to the content. Built from existing markup.</h3><br>
\r
28 <!-- container for the existing markup tabs -->
\r
30 <div id="script" class="tab-content">
\r
31 <b>Here's my script:</b>
\r
33 <!-- pre sections lookup hideous -->
\r
35 var tabs = new Roo.TabPanel('tabs1');
\r
36 tabs.addTab('script', "View Script");
\r
37 tabs.addTab('markup', "View Markup");
\r
38 tabs.activate('script');</pre>
\r
42 <div id="markup" class="tab-content">
\r
44 <!-- pre sections lookup hideous -->
\r
46 <div id="tabs1">
\r
47 <div id="script" class="tab-content">
\r
50 <div id="markup" class="tab-content">
\r
60 <h3>Tabs with fixed height that scroll the content. Built entirely with javascript.</h3>
\r
62 <li>Tab 1 is a normal tab with content passed when adding it.</li>
\r
63 <li>Tab 2 is loaded via Ajax. It was set up using the standard UpdateManager functionality. It reloads it's content every time it's activated.</li>
\r
64 <li>Tab 3 is loaded via Ajax too. It was set up using setUrl() a convenience method that will do everything done on tab 2 and also has the ability to set it to load only once.</li>
\r
65 <li>Tab 4 has an event listener attached.</li>
\r
66 <li>Tab 5 is disabled.</li>
\r
69 <!-- container for the pure JS tabs -->
\r
70 <div id="jtabs" class="xp">
\r