DHTMLX Docs & Samples Explorer

Index
dhtmlxAccordion
API Methods

### attachObject(obj)

Required library edition:
Required library file: dhtmlxlayout.js / dhtmlxaccordion.js

attaches the html object to a cell

- obj - object/objectId

    <body>
       <div id="myObj"> .. </div>
    </body>

Attaching to the layout's cell:

    <script>
       dhxLayout.cells("a").attachObject("myObj");
       // or
       var obj = document.getElementById("myObj");
       dhxLayout.cells("a").attachObject(obj);
    </script>

Attaching to the accordion's cell:

    <script>
       dhxAcc.cells(id).attachObject("myObj");
       // or
       var obj = document.getElementById("myObj");
       dhxAcc.cells(id).attachObject(obj);
    </script>