DHTMLX Docs & Samples Explorer

Index
dhtmlxwindows
API Methods

### attachViewportTo(objId)

Required library edition:
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");