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

attachViewportTo

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

void attachViewportTo(string objId);

Parameters

objIdstringobject id
Details

For example, we have a div with some nested objects on the page:

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

We can attach windows' viewport to the div, so its content will be accessible:

myWins.attachViewportTo("vpObj");
Back to top