DHTMLX Docs & Samples Explorer

Index
dhtmlxlayout
API Methods

### attachObject(obj)

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

attaches html object to the 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>