| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
| 2 |
"http://www.w3.org/TR/html4/strict.dtd"> |
| 3 |
<html lang="en"> |
| 4 |
<head> |
| 5 |
<title>dojox.layout.ExpandoPane</title> |
| 6 |
|
| 7 |
|
| 8 |
<link rel="stylesheet" id="themeStyles" href="../../../dijit/themes/tundra/tundra.css"> |
| 9 |
|
| 10 |
<link rel="stylesheet" href="../resources/ExpandoPane.css"> |
| 11 |
<link rel="stylesheet" href="../../../dijit/tests/css/dijitTests.css"> |
| 12 |
|
| 13 |
|
| 14 |
<script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="isDebug:true, parseOnLoad: true"></script> |
| 15 |
|
| 16 |
|
| 17 |
<script type="text/javascript" src="../../../dijit/tests/_testCommon.js"></script> |
| 18 |
|
| 19 |
<style type="text/css"> |
| 20 |
body, html { |
| 21 |
height:100%; |
| 22 |
} |
| 23 |
</style> |
| 24 |
|
| 25 |
|
| 26 |
<script type="text/javascript"> |
| 27 |
dojo.require("dojox.layout.ExpandoPane"); |
| 28 |
dojo.require("dijit.layout.TabContainer"); |
| 29 |
dojo.require("dijit.Tree"); |
| 30 |
dojo.require("dijit.layout.ContentPane"); |
| 31 |
dojo.require("dijit.layout.BorderContainer"); |
| 32 |
dojo.require("dojo.fx.easing"); |
| 33 |
</script> |
| 34 |
</head> |
| 35 |
<body class="tundra" role="main"> |
| 36 |
|
| 37 |
<h1>Basic ExpandoPane tests</h1> |
| 38 |
|
| 39 |
<h2>Left:</h2> |
| 40 |
<div dojoType="dijit.layout.BorderContainer" style="height:275px; border: solid #ccc 1px;"> |
| 41 |
<div dojoType="dojox.layout.ExpandoPane" title="leftTest" region="left" maxWidth="175" style="width:175px; background:red"> |
| 42 |
foo |
| 43 |
</div> |
| 44 |
<div dojoType="dijit.layout.TabContainer" region="center" tabStrip="true"> |
| 45 |
<div dojoType="dijit.layout.ContentPane" title="tab 1" href="_lorem.html"></div> |
| 46 |
<div dojoType="dijit.layout.ContentPane" title="tab 2" href="_lorem.html"></div> |
| 47 |
</div> |
| 48 |
</div> |
| 49 |
|
| 50 |
<h2>Right:</h2> |
| 51 |
<div dojoType="dijit.layout.BorderContainer" style="height:275px; border: solid #ccc 1px;"> |
| 52 |
<div dojoType="dojox.layout.ExpandoPane" title="rightTest" region="right" maxWidth="175" style="width:175px; background:red"> |
| 53 |
<div dojoType="dijit.layout.TabContainer" tabPosition="bottom" attachParent="true" tabStrip="true"> |
| 54 |
<div dojoType="dijit.layout.ContentPane" attachParent="true" title="tab 1" href="_lorem.html"></div> |
| 55 |
<div dojoType="dijit.layout.ContentPane" title="tab 2" href="_lorem.html"></div> |
| 56 |
</div> |
| 57 |
</div> |
| 58 |
<div dojoType="dijit.layout.TabContainer" region="center" tabStrip="true"> |
| 59 |
<div dojoType="dijit.layout.ContentPane" title="tab 1" href="_lorem.html"></div> |
| 60 |
<div dojoType="dijit.layout.ContentPane" title="tab 2" href="_lorem.html"></div> |
| 61 |
</div> |
| 62 |
</div> |
| 63 |
|
| 64 |
<h2>Top (easeIn="dojo.fx.easing.bounceOut" duration="1200"):</h2> |
| 65 |
<div dojoType="dijit.layout.BorderContainer" style="height:275px; border: solid #ccc 1px;"> |
| 66 |
<div easeIn="dojo.fx.easing.bounceOut" duration="1200" dojoType="dojox.layout.ExpandoPane" title="topTest" region="top" maxHeight="75" style="height:75px; background:red"> |
| 67 |
foo |
| 68 |
</div> |
| 69 |
<div region="center" dojoType="dijit.layout.ContentPane" href="_lorem.html"></div> |
| 70 |
</div> |
| 71 |
|
| 72 |
<h2>Bottom:</h2> |
| 73 |
<div dojoType="dijit.layout.BorderContainer" style="height:375px; border:8px solid #333;"> |
| 74 |
<div dojoType="dojox.layout.ExpandoPane" title="bottomTest" region="bottom" maxHeight="75" style="height:75px;"> |
| 75 |
foo |
| 76 |
</div> |
| 77 |
<div region="center" dojoType="dijit.layout.ContentPane" href="_lorem.html"></div> |
| 78 |
</div> |
| 79 |
|
| 80 |
<h2>Bottom/Left:</h2> |
| 81 |
<div dojoType="dijit.layout.BorderContainer" style="height:375px; border:8px solid #333;"> |
| 82 |
<div dojoType="dojox.layout.ExpandoPane" title="leftTest" region="left" maxWidth="175" style="width:175px; background:red;"> |
| 83 |
foo |
| 84 |
</div> |
| 85 |
<div dojoType="dojox.layout.ExpandoPane" title="bottomTest" region="bottom" maxHeight="75" style="height:75px;"> |
| 86 |
foo |
| 87 |
</div> |
| 88 |
<div region="center" dojoType="dijit.layout.ContentPane" href="_lorem.html"></div> |
| 89 |
</div> |
| 90 |
|
| 91 |
<h2>Top/Left/Right</h2> |
| 92 |
<div dojoType="dijit.layout.BorderContainer" style="height:375px; border:8px solid #333;"> |
| 93 |
<div dojoType="dojox.layout.ExpandoPane" title="leftTest" region="left" maxWidth="175" style="width:175px; background:red;"> |
| 94 |
foo |
| 95 |
</div> |
| 96 |
<div dojoType="dojox.layout.ExpandoPane" title="leftTest" region="right" maxWidth="175" style="width:175px; background:red;"> |
| 97 |
foo |
| 98 |
</div> |
| 99 |
<div dojoType="dojox.layout.ExpandoPane" title="bottomTest" region="bottom" maxHeight="75" style="height:75px;"> |
| 100 |
foo |
| 101 |
</div> |
| 102 |
<div region="center" dojoType="dijit.layout.ContentPane" href="_lorem.html"></div> |
| 103 |
</div> |
| 104 |
|
| 105 |
<h2>Bottom/Left/Right + splitters</h2> |
| 106 |
<div dojoType="dijit.layout.BorderContainer" style="height:375px; border:8px solid #333;"> |
| 107 |
<div splitter="true" dojoType="dojox.layout.ExpandoPane" title="leftTest" region="left" maxWidth="175" style="width:175px; background:red;"> |
| 108 |
foo |
| 109 |
</div> |
| 110 |
<div splitter="true" dojoType="dojox.layout.ExpandoPane" title="leftTest" region="right" maxWidth="175" style="width:175px; background:red;"> |
| 111 |
foo |
| 112 |
</div> |
| 113 |
<div splitter="true" dojoType="dojox.layout.ExpandoPane" title="bottomTest" region="bottom" maxHeight="75" style="height:75px;"> |
| 114 |
foo |
| 115 |
</div> |
| 116 |
<div region="center" dojoType="dijit.layout.ContentPane" href="_lorem.html"></div> |
| 117 |
</div> |
| 118 |
|
| 119 |
<h2>Same, all closed</h2> |
| 120 |
<div dojoType="dijit.layout.BorderContainer" style="height:375px; border:8px solid #333;"> |
| 121 |
<div splitter="true" startExpanded="false" dojoType="dojox.layout.ExpandoPane" title="leftTest" region="left" maxWidth="175" style="width:175px; background:yellow;"> |
| 122 |
foo |
| 123 |
</div> |
| 124 |
<div splitter="true" startExpanded="false" dojoType="dojox.layout.ExpandoPane" title="leftTest" region="right" maxWidth="175" style="width:175px; background:yellow;"> |
| 125 |
foo |
| 126 |
</div> |
| 127 |
<div splitter="true" startExpanded="false" dojoType="dojox.layout.ExpandoPane" title="bottomTest" region="bottom" maxHeight="75" style="height:75px; background:yellow;"> |
| 128 |
foo |
| 129 |
</div> |
| 130 |
<div region="center" startExpanded="false" dojoType="dijit.layout.ContentPane" href="_lorem.html"></div> |
| 131 |
</div> |
| 132 |
|
| 133 |
<h2>Same, Leading / Trailing</h2> |
| 134 |
<div dojoType="dijit.layout.BorderContainer" style="height:375px; border:8px solid #333;" design="sidebar"> |
| 135 |
<div splitter="true" startExpanded="false" dojoType="dojox.layout.ExpandoPane" title="leftTest" region="leading" maxWidth="175" style="width:175px; background:yellow;"> |
| 136 |
foo |
| 137 |
</div> |
| 138 |
<div splitter="true" startExpanded="false" dojoType="dojox.layout.ExpandoPane" title="rightTest" region="trailing" maxWidth="175" style="width:175px; background:yellow;"> |
| 139 |
foo |
| 140 |
</div> |
| 141 |
<div splitter="true" startExpanded="false" dojoType="dojox.layout.ExpandoPane" title="topTest" region="top" maxHeight="75" style="height:75px; background:yellow;"> |
| 142 |
foo |
| 143 |
</div> |
| 144 |
<div region="center" startExpanded="false" dojoType="dijit.layout.ContentPane" href="_lorem.html"></div> |
| 145 |
</div> |
| 146 |
|
| 147 |
|
| 148 |
</body> |
| 149 |
</html> |