DHTMLX Docs & Samples Explorer

setParent(parent)

Sets parent node (container) for calendar.

Parameters:

  • parent - a parent node (container).
<div id="box" style="height:300px; position:relative;"></div>
<div id="box2" style="height:300px; position:relative;"></div>
<script>
      myCalendar = new dhtmlXCalendarObject("box");
      myCalendar.show();
      ...
      myCalendar.setParent("box2");
</script>