Five spots of BorderLayout : BorderLayout « Dojo toolkit « JavaScript DHTML






Five spots of BorderLayout

 

<html>
  <head>
    <link rel="StyleSheet" type="text/css" href="js/dojo/dijit/themes/tundra/tundra.css">
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/",
        parseOnLoad : true
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
    <script>
            dojo.require("dijit.layout.ContentPane");
            dojo.require("dijit.layout.BorderContainer");
            dojo.require("dojo.parser");
    </script>
  </head>
  <body class="tundra">
       <div dojoType="dijit.layout.BorderContainer"
          design="headline" style="height:500px;width:500px;border:solid 3px;">

            <div dojoType="dijit.layout.ContentPane" region="top"
              style="background-color:#f21;height:100px;" splitter="true"
                minSize=10 maxSize=100>top</div>

            <div dojoType="dijit.layout.ContentPane" region="center">center</div>

            <div dojoType="dijit.layout.ContentPane" region="bottom"
              style="height:100px;" splitter="true">bottom</div>

            <div dojoType="dijit.layout.ContentPane" region="left"
              style="width:100px;" splitter="true">left</div>

            <div dojoType="dijit.layout.ContentPane" region="right"
              style="width:100px;" splitter="true">right</div>

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

   
  








Dojo-toolkit.zip( 3,849 k)

Related examples in the same category

1.DOM node from border layout
2.Setup border container
3.Use code to border layout tags