DHTMLX Docs & Samples Explorer

attachViewportTo(objId)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxwindows.js

attaches a vp to an existing object on page (renders an object as a viewport)

  • objId - object id

for example we have div with some nested objects on the page

    <div id="vpObj"> </div>

we can attach windows' viewport to it, so content will accessible

    dhxWins.attachViewportTo("vpObj");