Wizard based on stack container : Stack Container « Dojo toolkit « JavaScript Tutorial






<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("dojo.parser");
        dojo.require("dijit.layout.ContentPane");
        dojo.require("dijit.layout.StackContainer");
        dojo.require("dijit.form.Button");

    </script>
  </head>
  <body class="tundra">
    <button id="previous" onClick="dijit.byId('mainTabContainer').back()">Previous</button>
    <button id="next" onClick="dijit.byId('mainTabContainer').forward()">Next</button>
        <div id="mainTabContainer" dojoType="dijit.layout.StackContainer">
        <p id="Page1" dojoType="dijit.layout.ContentPane" label="Intro">Page First</p>
        <p id="Page2" dojoType="dijit.layout.ContentPane">Page Second.</p>
        <p id="Page3" dojoType="dijit.layout.ContentPane">Page Third.</p>
   </div>
  </body>
</html>








29.84.Stack Container
29.84.1.Create stack container programmatically
29.84.2.Stack container with back and forward actions
29.84.3.Use StackContainer and ContentPane
29.84.4.Wizard based on stack container