DHTMLX Docs & Samples Explorer

### Init From JSON

Source

    <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxaccordion_dhx_skyblue.css">
    <script src="../../codebase/dhtmlxcommon.js"></script>
    <script src="../../codebase/dhtmlxaccordion.js"></script>
    <script src="../../codebase/dhtmlxcontainer.js"></script>
    <script>var dhxAccord;
    function doOnLoad() {
        dhxAccord = new dhtmlXAccordion("accordObj");
        dhxAccord.loadJSON(accData);
    }
    var accData = {
        icons_path: "../common/",
        skin: "dhx_skyblue",
        cells: [{
            id: "a1",
            text: "Main Page"
        }, {
            id: "a2",
            text: "Site Navigation",
            open: true
        }, {
            id: "a3",
            text: "Support & Feedback",
            icon: "icon2.gif"
        }, {
            id: "a4",
            text: "Comments",
            icon: "icon3.gif"
        }]
        }</script>

    <div id="accordObj" style="position: relative; width: 320px; height: 400px;"></div>