Nested Accordion Pane : Accordion Pane « Dojo toolkit « JavaScript DHTML






Nested Accordion Pane

 

<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("dijit.layout.AccordionContainer");
            dojo.require("dijit.layout.AccordionPane");
    </script>
  </head>
  <body class="tundra">
    <div id="foo" dojoType="dijit.layout.AccordionContainer"  style="margin:5px">
    <div dojoType="dijit.layout.AccordionPane" title="one">
            <p>One</p>
    </div>
    <div dojoType="dijit.layout.AccordionPane" title="two">
            <p>Two</p>
    </div>
    <div dojoType="dijit.layout.AccordionPane" title="three">
            <p>Three</p>
    </div>
    <div id="blue" dojoType="dijit.layout.AccordionPane" title="four">
        <div dojoType="dijit.layout.ContentPane" href="blueFish">Four</div>
    </div>
</div>
</body>
</html>

   
  








Dojo-toolkit.zip( 3,849 k)

Related examples in the same category

1.Create dijit.layout.AccordionContainer
2.Set title for Accordion Pane
3.Create Accordian Pane with your code
4.Create Accordion Pane declaratively