Frameworks| Hibernate| Struts| JSF| JavaFX| Ajax| Spring| DOJO| JDO| iBatis| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials

Latest Questions
Comments
 
Dojo TabContainer 
 

In this section, you will learn about the TabContainer and how to create its.

 

Dojo TabContainer

                          

In this section, you will learn about the TabContainer and how to create its.

Try Online: Tab Container

TabContainer : This is a container that has multiple panes, but it displays only one pane at a time. There are multiple tabs corresponding to each pane, where each tab has the title and close button (label) of the pane. The close button is an optional button whenever you require. When you want to close any tab the click on the close button.

 

 

Here is the code of Program :

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TabContainer Demo</title>
    <style type="text/css">
      @import "../resources/dojo.css";
      @import "../dijit/themes/tundra/tundra.css";
      
  </style>
    <script type="text/javascript" 
  src="dojo.xd.js" djConfig="parseOnLoad: true"></script>

  <script type="text/javascript">
       dojo.require("dojo.parser");
           dojo.require("dijit.layout.ContentPane");
           dojo.require("dijit.layout.TabContainer");
           dojo.require("dijit.form.Button");
     </script>
</head>
<body class="tundra">
<h1>Tab Container</h1>
   <div id="mainTabContainer" dojoType="dijit.layout.TabContainer"
        style="width:500px;height:100px">
      <div id="tab1" dojoType="dijit.layout.ContentPane" 
   title="First Tab"  selected="true" closable="true">
      First Tab
      </div>
      <div id="tab2" dojoType="dijit.layout.ContentPane"
           title="Second Tab" closable="true">
      Second Tab
      </div>
      <div id="tab3" dojoType="dijit.layout.ContentPane"
             title="Third Tab" closable="true">
      Third Tab
      </div>
</div>
</body></html>

Output of the Program :

 

Try Online:

                          

» View all related tutorials
Related Tags: c dojo io accordion this ai container learn ear e il section in nt out j do s is ll

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

4 comments so far (
post your own) View All Comments Latest 10 Comments:

This sample is not working

Posted by dev on Saturday, 12.6.08 @ 21:13pm | #82474

/dijit/themes/tundra/tundra.css

change the margin at class
.tundra .dijitTab {
...
margin-right:4px; --> margin-right:0px;
...
}

Posted by J79 on Tuesday, 12.2.08 @ 14:27pm | #82292

Hi,

this example is great.

But how can I disable one tab of the tab container?

Greetings from germany,

DrummingBoy

Posted by DrummingBoy on Wednesday, 10.8.08 @ 16:37pm | #80963

In a tab container how do you remove the whitespace between the tabs, so that each tab is flush with the next tab?

Posted by Jim on Wednesday, 06.11.08 @ 04:53am | #62989

Training Courses
Tell A Friend
Your Friend Name
Software Solutions
Least Viewed
Most Rated
Recently Viewed
Search Tutorials

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.