Check documentation for the latest version of dhtmlxSuite attachObject DHTMLX Docs

attachObject

attaches an html object to a window

void attachObject(string|number|HTMLElement obj);
objstring|number|HTMLElementobject DOM element or its id

Example

myWins.window(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 window 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