Advertisement
Guest User

declaratively

a guest
May 24th, 2012
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.52 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html lang="en">
  3.     <head>
  4.         <meta charset="utf-8">
  5.         <title>Demo: Layout with Dijit</title>
  6.         <link rel="stylesheet" href="style.css" media="screen" />
  7.         <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dijit/themes/claro/claro.css" media="screen" />
  8.         <!-- load dojo and provide config via data attribute -->
  9.         <script src="http://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dojo/dojo.js"
  10.                data-dojo-config="async: true, parseOnLoad:true">
  11.         </script>
  12.         <script>
  13.             require(["dijit/layout/BorderContainer", "dijit/layout/TabContainer",
  14.             "dijit/layout/ContentPane", "dojo/parser"]);
  15.         </script>
  16.     </head>
  17.     <body class="claro">
  18.         <div id="appLayout" class="demoLayout"
  19.             data-dojo-type="dijit.layout.BorderContainer"
  20.             data-dojo-props="design: 'headline'">
  21.             <div class="centerPanel"
  22.                 data-dojo-type="dijit.layout.ContentPane"
  23.                 data-dojo-props="region: 'center'">
  24.                 <h4>Group 1 Content</h4>
  25.             </div>
  26.  
  27.             <div class="edgePanel"
  28.                 data-dojo-type="dijit.layout.ContentPane"
  29.                 data-dojo-props="region: 'top'">Header content (top)</div>
  30.             <div class="edgePanel"
  31.                 data-dojo-type="dijit.layout.ContentPane"
  32.                 data-dojo-props="region: 'left', splitter: true">Sidebar content (left)</div>
  33.         </div>
  34.     </body>
  35. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement