Created
February 11, 2010 01:35
-
-
Save parente/301105 to your computer and use it in GitHub Desktop.
dojo seed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Dojo Template</title> | |
<style type="text/css"> | |
@import "http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/resources/dojo.css"; | |
@import "http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/claro/claro.css"; | |
/* include your main application css here */ | |
/*@import "css/your_css.css";*/ | |
/* for now, I've inlined some rules to keep this demo in a single file */ | |
body { overflow: hidden; } | |
html, body, .dijitBorderContainer {width: 100%; height: 100%;} | |
.dijitAccordionContainer {width: 200px;} | |
</style> | |
<script type="text/javascript"> | |
var djConfig = { | |
isDebug: false, | |
parseOnLoad: true, | |
baseUrl: './', | |
// map local widget namespaces -> paths relative to baseUrl | |
modulePaths: {'widgets' : 'widgets'} | |
}; | |
</script> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dojo/dojo.xd.js"></script> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/dijit.xd.js"></script> | |
<script type="text/javascript"> | |
// include any modules needed for the initial Dojo markup parse here | |
// or at the top of your JS file; take it out if you don't need it | |
dojo.require('dijit.layout.BorderContainer'); | |
dojo.require('dijit.layout.ContentPane'); | |
dojo.require('dijit.layout.AccordionContainer'); | |
dojo.require('dijit.layout.TabContainer'); | |
</script> | |
<!-- include your startup javascript file here; the requires above could go in it --> | |
<!--<script type="text/javascript" src="your_main.js"></script>--> | |
</head> | |
<body class="claro"> | |
<div dojoType="dijit.layout.BorderContainer" liveSplitters="true"> | |
<div dojoType="dijit.layout.ContentPane" region="top" splitter="false">Header</div> | |
<div dojoType="dijit.layout.TabContainer" region="center" splitter="true"> | |
<div dojoType="dijit.layout.ContentPane" title="Tab1">Content1</div> | |
<div dojoType="dijit.layout.ContentPane" title="Tab2">Content2</div> | |
<div dojoType="dijit.layout.ContentPane" title="Tab3">Content3</div> | |
</div> | |
<div dojoType="dijit.layout.AccordionContainer" region="right" splitter="true" minSize="200"> | |
<div dojoType="dijit.layout.ContentPane" title="Pane1">Sidebar1</div> | |
<div dojoType="dijit.layout.ContentPane" title="Pane2">Sidebar2</div> | |
<div dojoType="dijit.layout.ContentPane" title="Pane3">Sidebar3</div> | |
</div> | |
<div dojoType="dijit.layout.ContentPane" region="bottom" splitter="false">Footer</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment