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

setParent

sets a parent container for the calendar

void setParent(string|number|HTMLElement container);

Parameters

containerstring|number|HTMLElementobject id or object DOM element
Details

 

<div id="box" style="height:300px; position:relative;"></div>
<div id="box2" style="height:300px; position:relative;"></div>
var myCalendar = new dhtmlXCalendarObject("box");
myCalendar.show();
// change parent
myCalendar.setParent("box2");
Back to top