Debian Codegraph @

dijit/tests/layout/StackContainer.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
5 <title>StackContainer Demo</title>
6
7 <script src="../boilerplate.js"></script>
8
9 <style>
10 .dijitStackController .dijitToggleButtonChecked button {
11 background-color: white;
12 background-image: none;
13 }
14 div.dijitStackContainer {
15 border: solid 1px black !important; /* override .dijitStackContainer-child rule for no border */
16 padding: 3px;
17 }
18 </style>
19
20 <script type="text/javascript">
21 require([
22 "doh/runner",
23 "dojo/aspect",
24 "dojo/_base/declare",
25 "dojo/dom",
26 "dojo/dom-geometry",
27 "dojo/on",
28 "dojo/parser",
29 "dojo/query",
30 "dojo/topic",
31 "dijit/registry",
32 "dijit/form/Button",
33 "dijit/layout/BorderContainer",
34 "dijit/layout/ContentPane",
35 "dijit/layout/_LayoutWidget",
36 "dijit/layout/StackContainer",
37 "dijit/layout/StackController",
38 "dijit/layout/TabContainer",
39 "dijit/tests/helpers",
40 "dojo/domReady!"
41 ], function(doh, aspect, declare, dom, domGeom, on, parser, query, topic,
42 registry, Button, BorderContainer, ContentPane, _LayoutWidget, StackContainer, StackController, TabContainer,
43 helpers){
44
45
46 // Hash listing which objects have gotten a resize event
47 var resizesHash = {};
48
49 // track resize events
50 aspect.after(_LayoutWidget.prototype, "resize", function(){
51 console.log("resize of widget " + this.id);
52 resizesHash[this.id] = arguments;
53 }, true);
54
55 function click(/*String*/ id){
56 // Click dijit widget w/specified id
57 on.emit(dom.byId(id), "click", {bubbles: true, cancelable: true});
58 }
59
60 function selected(page){
61 console.debug("page selected " + page.id);
62 var widget=registry.byId("myStackContainer");
63 registry.byId("previous").set("disabled", page.isFirstChild);
64 registry.byId("next").set("disabled", page.isLastChild);
65 registry.byId("previous2").set("disabled", page.isFirstChild);
66 registry.byId("next2").set("disabled", page.isLastChild);
67 }
68 topic.subscribe("myStackContainer-selectChild", selected);
69
70 doh.register("programmatic", [
71 function create(){
72 container = new StackContainer({ id: "sc" }, "myStackContainer2");
73 container.addChild(new ContentPane({
74 id: "page1Prog",
75 title: "Page 1",
76 content: "IT WAS the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other way -- in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only"
77 }));
78 container.addChild(new ContentPane({
79 id: "page2Prog",
80 title: "Page 2",
81 content: "There were a king with a large jaw and a queen with a plain face, on the throne of England; there were a king with a large jaw and a queen with a fair face, on the throne of France. In both countries it was clearer than crystal to the lords of the State preserves of loaves and fishes, that things in general were settled for ever."
82 }));
83 container.addChild(page3Prog = new ContentPane({
84 id: "page3Prog",
85 title: "Page 3",
86 content: "It was the year of Our Lord one thousand seven hundred and seventy- five. Spiritual revelations were conceded to England at that favoured period, as at this. Mrs. Southcott had recently attained her five-and- twentieth blessed birthday, of whom a prophetic private in the Life Guards had heralded the sublime appearance by announcing that arrangements were made for the swallowing up of London and Westminster. Even the Cock-lane ghost had been laid only a round dozen of years, after rapping out its messages, as the spirits of this very year last past (supernaturally deficient in originality) rapped out theirs. Mere messages in the earthly order of events had lately come to the English Crown and People, from a congress of British subjects in America:"
87 }));
88 container.addChild(new ContentPane({
89 id: "page4Prog",
90 title: "Page 4",
91 href: "tab1.html"
92 }));
93
94 // make the controller
95 controller = new StackController({id: "holder", containerId: "sc"}, "holder");
96
97 // start 'em up
98 controller.startup();
99 container.startup();
100
101 doh.is(4, container.getChildren().length, "num children");
102
103 // Check aria roles and structure.
104 doh.is(4, query("> *", container.containerNode).length, "wrapper nodes around children");
105 doh.is(4, query("> *[role=tabpanel]", container.containerNode).length, "wrapper nodes have role=tabpanel");
106 doh.is("page1Prog page2Prog page3Prog page4Prog", query("> * > *", container.containerNode).map(function(node){
107 return registry.byNode(node).id;
108 }).join(" "), "children of wrapper divs");
109 },
110 {
111 name: "selectHref",
112 timeout: 5000,
113 runTest: function(){
114 var d = new doh.Deferred();
115 registry.byId("sc").selectChild(registry.byId("page4Prog")).then(d.getTestCallback(function(){
116 doh.t(helpers.isVisible(dom.byId("page4Prog")), "page4 visible");
117 doh.t(helpers.isHidden(dom.byId("page1Prog")), "page1 hidden");
118 }));
119 return d;
120 }
121 },
122 function selectPlain(){
123 var d = new doh.Deferred();
124 registry.byId("sc").selectChild(registry.byId("page1Prog")).then(d.getTestCallback(function(){
125 doh.t(helpers.isVisible(dom.byId("page1Prog")), "page1 visible");
126 doh.t(helpers.isHidden(dom.byId("page4Prog")), "page4 hidden");
127 }));
128 return d;
129 },
130 function selectCurrent(){
131 var d = new doh.Deferred();
132 registry.byId("sc").selectChild(registry.byId("page1Prog")).then(d.getTestCallback(function(){
133 doh.t(helpers.isVisible(dom.byId("page1Prog")), "page1 visible");
134 doh.t(helpers.isHidden(dom.byId("page4Prog")), "page4 hidden");
135 }));
136 return d;
137 },
138 function addChild(){
139 // make sure that child gets put in right place, with role=tabpanel wrapper <div> around it
140 var child = new ContentPane({
141 id: "page2.5Prog",
142 title: "Page 2.5",
143 href: "tab1.html"
144 });
145 container.addChild(child, 2);
146
147 doh.is(5, query("> *", container.containerNode).length, "wrapper nodes around children");
148 doh.is(5, query("> *[role=tabpanel]", container.containerNode).length, "wrapper nodes have role=tabpanel");
149 doh.is("page1Prog page2Prog page2.5Prog page3Prog page4Prog", query("> * > *", container.containerNode).map(function(node){
150 return registry.byNode(node).id;
151 }).join(" "), "children of wrapper divs");
152 },
153 function removeChild(){
154 // note the layout containers only support removeChild(widget), not removeChild(number)
155 container.removeChild(page3Prog);
156
157 doh.is(4, query("> *", container.containerNode).length, "wrapper nodes around children");
158 doh.is(4, query("> *[role=tabpanel]", container.containerNode).length, "wrapper nodes have role=tabpanel");
159 doh.is("page1Prog page2Prog page2.5Prog page4Prog", query("> * > *", container.containerNode).map(function(node){
160 return registry.byNode(node).id;
161 }).join(" "), "children of wrapper divs");
162 }
163 ]);
164
165 doh.register("parse", [
166 function parse(){
167 return parser.parse();
168 }
169 ]);
170
171 doh.register("basic operation", [
172 function forward(){
173 click("next");
174 doh.t(helpers.isHidden(dom.byId("page1")), "page1 hidden");
175 doh.t(helpers.isVisible(dom.byId("page2")), "page2 visible");
176 doh.t(helpers.isHidden(dom.byId("page3")), "page3 hidden");
177 },
178 function previous(){
179 click("previous");
180 doh.t(registry.byId("previous").disabled, "disabled");
181 doh.t(helpers.isVisible(dom.byId("page1")), "page1 visible");
182 doh.t(helpers.isHidden(dom.byId("page2")), "page2 hidden");
183 doh.t(helpers.isHidden(dom.byId("page3")), "page3 hidden");
184 },
185 function clickPage2(){
186 click("myStackController_page2");
187 doh.t(helpers.isHidden(dom.byId("page1")), "page1 hidden");
188 doh.t(helpers.isVisible(dom.byId("page2")), "page2 visible");
189 doh.t(helpers.isHidden(dom.byId("page3")), "page3 hidden");
190 },
191 function clickTwice(){
192 click("myStackController_page1");
193 click("myStackController_page1");
194 var button = registry.byId("myStackController_page1");
195 doh.t(button.checked, "Page 1 button is still checked");
196 }
197 ]);
198
199 doh.register("nested layout widgets", [
200 function nestedLayout(){
201 click("nextPR");
202 var bcPos = domGeom.position("bc"),
203 tcPos = domGeom.position("tc");
204
205 doh.t("bc" in resizesHash, "BorderContainer got resize");
206 doh.is(300, Math.round(bcPos.w), "BorderContainer width");
207 doh.is(200, bcPos.h, "BorderContainer height");
208
209 doh.t("tc" in resizesHash, "TabContainer got resize");
210 doh.is(300, Math.round(bcPos.w), "TabContainer width");
211 doh.is(200, bcPos.h, "TabContainer height");
212 }
213 ]);
214
215 doh.register("nested stackcontainer w/doLayout=false", [
216 function resizeCalled(){
217 doh.t("stack1" in resizesHash, "stack1 resized");
218 doh.t("stack2" in resizesHash, "stack2 resized");
219 doh.t("stack3" in resizesHash, "stack3 resized");
220 doh.t("stack4" in resizesHash, "stack4 resized");
221 doh.t(helpers.isVisible(dom.byId("stack4")), "stack4 visible");
222 }
223 ]);
224
225 doh.register("removeChild", function removeChild(){
226 var container = new StackContainer({ id: "sc2","aria-label":"sc2" });
227 container.addChild(new ContentPane({
228 id: "rpage1Prog",
229 title: "Page 1",
230 content: "IT WAS the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other way -- in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only"
231 }));
232 container.addChild(new ContentPane({
233 id: "rpage2Prog",
234 title: "Page 2",
235 content: "There were a king with a large jaw and a queen with a plain face, on the throne of England; there were a king with a large jaw and a queen with a fair face, on the throne of France. In both countries it was clearer than crystal to the lords of the State preserves of loaves and fishes, that things in general were settled for ever."
236 }));
237 var page3;
238 container.addChild(page3 = new ContentPane({
239 id: "rpage3Prog",
240 title: "Page 3",
241 content: "It was the year of Our Lord one thousand seven hundred and seventy- five. Spiritual revelations were conceded to England at that favoured period, as at this. Mrs. Southcott had recently attained her five-and- twentieth blessed birthday, of whom a prophetic private in the Life Guards had heralded the sublime appearance by announcing that arrangements were made for the swallowing up of London and Westminster. Even the Cock-lane ghost had been laid only a round dozen of years, after rapping out its messages, as the spirits of this very year last past (supernaturally deficient in originality) rapped out theirs. Mere messages in the earthly order of events had lately come to the English Crown and People, from a congress of British subjects in America:"
242 }));
243
244 container.placeAt(document.body);
245 container.startup();
246 container.selectChild(page3);
247
248 var resizes = 0;
249 aspect.after(page3, "resize", function(){
250 resizes++;
251 }, true);
252 container.removeChild(page3);
253 doh.is(0, resizes, "removing selected child doesn't call resize on it");
254 doh.is(2, container.getChildren().length, "2 children");
255 });
256
257 doh.register("childless startup", function childlessStartup(){
258 // make and start the container without children
259 var container = new StackContainer({ id: "nssc", "aria-label":"nssc"},"noChildrenStackContainer");
260 container.startup();
261
262 // monitor _showChild() calls
263 var showChildCalls = {};
264 aspect.after(container, "_showChild", function(child){
265 showChildCalls[child.id] = (showChildCalls[child.id] || 0) + 1;
266 }, true);
267
268 // Create and add child
269 var child1 = new ContentPane({
270 id: "ncsc1",
271 title: "Page 1",
272 content: "IT WAS the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other way -- in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only"
273 });
274 var resizes = 0;
275 aspect.after(child1, "resize", function(){
276 resizes++;
277 }, true);
278 container.addChild(child1);
279 doh.is(1, resizes, "child1 resized when added");
280 doh.is(1, showChildCalls["ncsc1"], "StackContainer._showChild(child1) called when child added");
281
282 // Add another child
283 container.addChild(new ContentPane({
284 id: "ncsc2",
285 title: "Page 2",
286 content: "There were a king with a large jaw and a queen with a plain face, on the throne of England; there were a king with a large jaw and a queen with a fair face, on the throne of France. In both countries it was clearer than crystal to the lords of the State preserves of loaves and fishes, that things in general were settled for ever."
287 }));
288 doh.f("ncsc2" in showChildCalls, "StackContainer._showChild(child2) not called when child added");
289 doh.is(1, showChildCalls["ncsc1"], "StackContainer._showChild(child1) not called when second child added");
290
291 // addChild() unfortunately triggers child1.resize() to be called, in anticipation that the new
292 // child may have caused the tab labels to overflow to 2 lines, thus reducing content size
293 // doh.is(1, resizes, "child1 not resized when child2 added");
294 var resizesBeforeContainerResize = resizes; // in 1.7 this is 2, in 2.0 will hopefully be 1
295
296 // Resize the StackContainer.
297 container.resize();
298 doh.is(resizesBeforeContainerResize + 1, resizes, "child1 resized once more when StackContainer resized");
299 doh.is(1, showChildCalls["ncsc1"], "StackContainer._showChild(child1) not called when StackContainer resized");
300 });
301
302 doh.register("destroy", function destroy(){
303 // destroyRecursive() on a StackController used to get an exception
304 var oldNumWidgets = require("dijit/registry").length;
305 registry.byId("holder").destroyRecursive();
306 var newNumWidgets = require("dijit/registry").length;
307 doh.is(5, oldNumWidgets - newNumWidgets, newNumWidgets + "-" + oldNumWidgets + " destroyed");
308 });
309
310 doh.register("selectChild before startup", function selectBeforeStartup(){
311 var container = new StackContainer({ id: "sbs","aria-label":"sbs" });
312 container.addChild(new ContentPane({
313 id: "sbs1",
314 title: "Page 1",
315 content: "select before startup page 1"
316 }));
317 container.addChild(new ContentPane({
318 id: "sbs2",
319 title: "Page 2",
320 content: "select before startup page 2"
321 }));
322 var page3;
323 container.addChild(page3 = new ContentPane({
324 id: "sbs3",
325 title: "Page 3",
326 content: "select before startup page 3"
327 }));
328
329 container.selectChild(page3);
330 container.placeAt(document.body);
331 container.startup();
332
333 doh.t(helpers.isHidden(dom.byId("sbs1")), "page1 hidden");
334 doh.t(helpers.isHidden(dom.byId("sbs2")), "page2 hidden");
335 doh.t(helpers.isVisible(dom.byId("sbs3")), "page2 visible");
336 });
337
338 doh.run();
339 });
340
341 </script>
342 </head>
343
344 <body class="claro" role="main">
345 <script type="dojo/require">
346 registry: "dijit/registry"
347 </script>
348
349 <h1 class="testTitle">A Tale Of Two Cities</h1>
350
351 <button id="previous" data-dojo-type="dijit/form/Button" data-dojo-props='onClick:function(){ registry.byId("myStackContainer").back() }'>&lt;</button>
352 <span data-dojo-type="dijit/layout/StackController" id="myStackController" data-dojo-props='containerId:"myStackContainer"'></span>
353 <button id="next" data-dojo-type="dijit/form/Button" data-dojo-props='onClick:function(){ registry.byId("myStackContainer").forward() }'>&gt;</button>
354
355 <div id="myStackContainer" data-dojo-type="dijit/layout/StackContainer"
356 data-dojo-props='style:"width: 90%; border: 1px solid #9b9b9b; height: 20em; margin: 0.5em 0 0.5em 0; padding: 0.5em;","aria-label":"my stack container"'>
357 <p id="page1" data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"page 1","aria-label":"page1"'>IT WAS the best of times, it <input aria-label="input" value="was the worst" /> of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other way -- in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only</p>
358 <p id="page2" data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"page 2"'>There were a king with a large jaw and a queen with a plain face, on the throne of England; there were a king with a large jaw and a queen with a fair face, on the throne of <a href="http://www.france.com">France</a>. In both countries it was clearer than crystal to the lords of the State preserves of loaves and fishes, that things in general were settled for ever.</p>
359 <p id="page3" data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"page 3"'>It was the year of Our Lord one thousand seven hundred and seventy- five. Spiritual revelations were conceded to England at that favoured period, as at this. Mrs. Southcott had recently attained her five-and- twentieth blessed birthday, of whom a prophetic private in the Life Guards had heralded the sublime appearance by announcing that arrangements were made for the swallowing up of London and Westminster. Even the Cock-lane ghost had been laid only a round dozen of years, after rapping out its messages, as the spirits of this very year last past (supernaturally deficient in originality) rapped out theirs. Mere messages in the earthly order of events had lately come to the English Crown and People, from a congress of British subjects in America:</p>
360 </div>
361
362 <button id="previous2" data-dojo-type="dijit/form/Button" data-dojo-props='onClick:function(){ registry.byId("myStackContainer").back() }'>&lt;</button>
363 <span data-dojo-type="dijit/layout/StackController" data-dojo-props='containerId:"myStackContainer"'></span>
364 <button id="next2" data-dojo-type="dijit/form/Button" data-dojo-props='onClick:function(){ registry.byId("myStackContainer").forward() }'>&gt;</button>
365
366
367 <h1 class="testTitle" style="margin-top: 3em;">Embedded layout widgets</h1>
368 <p>This tests having layout widgets embedded in the StackContainer, making sure they render on the hidden pane.</p>
369
370 <button id="previousPR" data-dojo-type="dijit/form/Button" data-dojo-props='onClick:function(){ registry.byId("myStackContainerPR").back() }'>&lt;</button>
371 <span data-dojo-type="dijit/layout/StackController" data-dojo-props='containerId:"myStackContainerPR"'></span>
372 <button id="nextPR" data-dojo-type="dijit/form/Button" data-dojo-props='onClick:function(){ registry.byId("myStackContainerPR").forward() }'>&gt;</button>
373
374 <div id="myStackContainerPR" data-dojo-type="dijit/layout/StackContainer"
375 data-dojo-props='style:"width: 90%; border: 1px solid #9b9b9b; height: 20em; margin: 0.5em 0 0.5em 0; padding: 0.5em;","aria-label":"my stack container PR"'>
376 <div id="page1PR" data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"page 1"'>
377 <p>
378 The next pane should have some text, plus two embedded layout widgets, which should
379 appear correctly even though the pane is initially hidden
380 </p>
381 </div>
382 <div id="page2PR" data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"page 2", style:"padding: 1em;"'>
383 <p>
384 Here's a BorderContainer:
385 </p>
386 <div id="bc" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props='style:"height:200px; width:300px"'>
387 <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='region:"left", style:"width:100px", splitter:true'>
388 1Sed arcu magna, molestie at, fringilla in, sodales eu, elit.
389 Curabitur mattis lorem et est. Quisque et tortor. Integer bibendum
390 vulputate odio. Nam nec ipsum. Vestibulum mollis eros feugiat
391 augue. Integer fermentum odio lobortis odio. Nullam mollis nisl non
392 metus. Maecenas nec nunc eget pede ultrices blandit. Ut non purus
393 ut elit convallis eleifend. Fusce tincidunt, justo quis tempus
394 euismod, magna nulla viverra libero, sit amet lacinia odio diam id
395 risus. Ut varius viverra turpis. Morbi urna elit, imperdiet eu,
396 porta ac, pharetra sed, nisi. Etiam ante libero, ultrices ac,
397 faucibus ac, cursus sodales, nisl. Praesent nisl sem, fermentum eu,
398 consequat quis, varius interdum, nulla. Donec neque tortor,
399 sollicitudin sed, consequat nec, facilisis sit amet, orci. Aenean
400 ut eros sit amet ante pharetra interdum.
401 </div>
402 <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='region:"center"'>
403 2Sed arcu magna, molestie at, fringilla in, sodales eu, elit.
404 Curabitur mattis lorem et est. Quisque et tortor. Integer bibendum
405 vulputate odio. Nam nec ipsum. Vestibulum mollis eros feugiat
406 augue. Integer fermentum odio lobortis odio. Nullam mollis nisl non
407 metus. Maecenas nec nunc eget pede ultrices blandit. Ut non purus
408 ut elit convallis eleifend. Fusce tincidunt, justo quis tempus
409 euismod, magna nulla viverra libero, sit amet lacinia odio diam id
410 risus. Ut varius viverra turpis. Morbi urna elit, imperdiet eu,
411 porta ac, pharetra sed, nisi. Etiam ante libero, ultrices ac,
412 faucibus ac, cursus sodales, nisl. Praesent nisl sem, fermentum eu,
413 consequat quis, varius interdum, nulla. Donec neque tortor,
414 sollicitudin sed, consequat nec, facilisis sit amet, orci. Aenean
415 ut eros sit amet ante pharetra interdum.
416 </div>
417 </div>
418 <p>
419 And a TabContainer:
420 </p>
421 <div id="tc" data-dojo-type="dijit/layout/TabContainer" data-dojo-props='style:"height:200px; width:300px","aria-label":"tc"'>
422 <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Tab 1"'>
423 1Sed arcu magna, molestie at, fringilla in, sodales eu, elit.
424 Curabitur mattis lorem et est. Quisque et tortor. Integer bibendum
425 vulputate odio. Nam nec ipsum. Vestibulum mollis eros feugiat
426 augue. Integer fermentum odio lobortis odio. Nullam mollis nisl non
427 metus. Maecenas nec nunc eget pede ultrices blandit. Ut non purus
428 ut elit convallis eleifend. Fusce tincidunt, justo quis tempus
429 euismod, magna nulla viverra libero, sit amet lacinia odio diam id
430 risus. Ut varius viverra turpis. Morbi urna elit, imperdiet eu,
431 porta ac, pharetra sed, nisi. Etiam ante libero, ultrices ac,
432 faucibus ac, cursus sodales, nisl. Praesent nisl sem, fermentum eu,
433 consequat quis, varius interdum, nulla. Donec neque tortor,
434 sollicitudin sed, consequat nec, facilisis sit amet, orci. Aenean
435 ut eros sit amet ante pharetra interdum.
436 </div>
437 <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Tab 2"'>
438 2Sed arcu magna, molestie at, fringilla in, sodales eu, elit.
439 Curabitur mattis lorem et est. Quisque et tortor. Integer bibendum
440 vulputate odio. Nam nec ipsum. Vestibulum mollis eros feugiat
441 augue. Integer fermentum odio lobortis odio. Nullam mollis nisl non
442 metus. Maecenas nec nunc eget pede ultrices blandit. Ut non purus
443 ut elit convallis eleifend. Fusce tincidunt, justo quis tempus
444 euismod, magna nulla viverra libero, sit amet lacinia odio diam id
445 risus. Ut varius viverra turpis. Morbi urna elit, imperdiet eu,
446 porta ac, pharetra sed, nisi. Etiam ante libero, ultrices ac,
447 faucibus ac, cursus sodales, nisl. Praesent nisl sem, fermentum eu,
448 consequat quis, varius interdum, nulla. Donec neque tortor,
449 sollicitudin sed, consequat nec, facilisis sit amet, orci. Aenean
450 ut eros sit amet ante pharetra interdum.
451 </div>
452 </div>
453 <p>
454 That's it!
455 </p>
456 </div>
457 </div>
458 <button id="previous2PR" data-dojo-type="dijit/form/Button" data-dojo-props='onClick:function(){ registry.byId("myStackContainerPR").back() }'>&lt;</button>
459 <span data-dojo-type="dijit/layout/StackController" data-dojo-props='containerId:"myStackContainerPR"'></span>
460 <button id="next2PR" data-dojo-type="dijit/form/Button" data-dojo-props='onClick:function(){ registry.byId("myStackContainerPR").forward() }'>&gt;</button>
461
462 <h1>Nested StackContainers w/doLayout=false</h1>
463 <p>"hello world" inner text should be visible</p>
464 <div id="stack1" aria-label="stack1" data-dojo-type="dijit/layout/StackContainer" doLayout="false">
465 <div id="stack2" aria-label="stack2" data-dojo-type="dijit/layout/StackContainer" doLayout="false">
466 <div id="stack3" aria-label="stack3" data-dojo-type="dijit/layout/StackContainer" doLayout="false">
467 <div id="stack4" aria-label="stack4" data-dojo-type="dijit/layout/StackContainer" doLayout="false">
468 hello world
469 </div>
470 </div>
471 </div>
472 </div>
473
474
475 <h1>Programmatic test</h1>
476
477 Links: <span id="holder"></span>
478
479 <div id="myStackContainer2" style="width: 90%; border: 1px solid #9b9b9b; height: 20em; margin: 0.5em 0 0.5em 0; padding: 0.5em;">
480 </div>
481
482 <div id="noChildrenStackContainer" style="width: 90%; border: 1px solid #9b9b9b; height: 20em;"></div>
483 </body>
484 </html>