Home Dojo Dojo BorderContainer
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

Dojo BorderContainer

Advertisement
In this section, you will learn about the dojo BorderContainer.

Dojo BorderContainer

       

In this section, you will learn about the dojo BorderContainer.

BorderContainer: This is a container that operates in a choice of two layout modes: 1. The design attribute may be set to "headline" (by default) or 2. "sidebar". The "headline" layout extends the top and bottom regions of entire width of the box . And the remaining regions are placed in the middle or center. The "sidebar" layout, the side panels take priority to extend the full height of the box.

Try Online: BorderContainer

Here is the code for BorderContainer Example:

<html>
<head>

<title>Layout Container Example</title>
  <style type="text/css">
  @import "../dijit/themes/tundra/tundra.css";
  @import "/resources/dojo.css"
  </style>
  <script type="text/javascript" src="http://o.
aolcdn.com/dojo/1.1/dojo/dojo.xd.js"
  djConfig="parseOnLoad: true"></script>

  <script type="text/javascript">
  dojo.require("dojo.parser");
  dojo.require("dijit.layout.ContentPane");
  dojo.require("dijit.layout.BorderContainer");
 </script>
</head>

<body class="tundra">

  <div dojoType="dijit.layout.BorderContainer" design="screenDesign">

 <div dojoType="dijit.layout.ContentPane" id="top" 
region="top" style="background-color:gray">
 <h3> Roseindia Technology Pvt. Ltd.</h3>
 </div>

 <div dojoType="dijit.layout.ContentPane" id="left" region="left" 
  style="background-color:lightblue;width: 125px;">
  <B>Tutorials List</B>
  <ul>
  <li>Struts2</li>
  <li>JSP</li>
  <li>Servlets</li>
  <li>EJB</li>
  <li>Hibernate</li>
 </ul>

  </div>

  <div dojoType="dijit.layout.ContentPane" id="center" region="center"
  style="background-color:white">
  <blockquote>Introduction</a>
  <ol>
  <li>Short description</li>
  <li>Brief description </li>
  <li>Running Examples</li>
  </ol>
  </blockquote>
  </div>

  <div dojoType="dijit.layout.ContentPane" id="right" region="right"
  style="background-color:pink; width: 130px;">
  <p><B>Advertisement</B></p>
  <img src="advertisement.gif" align="right"/>
  </div>

  </div> 
  
</body>
</html>

Output of BorderContainer :

Try Online:

Advertisements

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 1, 2008

Ask Questions?    Discuss: Dojo BorderContainer   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
Recycle
June 14, 2012
bFIZkgnRnNC

That are really great news! We have ientgrated Dojo 1.6 into one of our products with almost no effort.But what about a maintenance release for Dojo 1.5? There is still another product of us stuck with that release, and we'd like to get IE9 support in there. The 1.5.1rc1, available for download since more than a month without a final release appearing, doesn't seem to be IE9-capable either Any hope that there will be an IE9-compatible Dojo 1.5 in near future?
DMCA.com