Wijmo User Guide > Widgets > Accordion > Accordion How To > Initialize with All Panes Collapsed |
Building on the Quick Start example, you can change two options to initialize your accordion with all panes closed.
All Panes Closed Script |
Copy Code
|
---|---|
<script type="text/javascript"> $(document).ready(function () { $("#accordion").wijaccordion({ header: "h2", expandDirection: "right", requireOpenedPane: false, selectedIndex: -1 }); }); </script> |