Check documentation for the latest version of dhtmlxSuite setParent DHTMLX Docs

setParent

sets a parent container for the calendar

void setParent(string|number|HTMLElement container);
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