Check documentation for the latest version 6.0 of dhtmlxSuite attachObject DHTMLX Docs

attachObject

attaches an HTML object to a cell

void attachObject(string|number|HTMLElement obj);

Parameters

objstring|number|HTMLElementobject DOM element or its id

Example

dhxComponent.cells(id).attachObject("objectId");

Details
  • style "display:none" (if set) will be removed automatically after attaching, useful to keep content hidden while not attached
<div id="objectId" style="display: none;">...</div>
  • for this mode cell will not render native scrolls, so you need to use the following style: "width: 100%; height: 100%; overflow: auto;" to make attached object's scrolls appear when necessary
div#objectId {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: auto;
}
See also
Back to top