Check documentation for the latest version of dhtmlxSuite setPosition DHTMLX Docs

setPosition

sets a calendar's position when it's attached to input

void setPosition(string pos);
posstringthe position of a calendar when it's attached to input

Example

myCalendar.setPosition("right"); // "bottom"

Details

when a calendar is attached to a custom parent, you can pass x and y coordinates directly

// sets left and top offsets of a calendar
myCalendar.setPosition(10, 20);
 
// sets just left offset of a calendar
myCalendar.setPosition(10);
 
// sets just top offset of a calendar
myCalendar.setPosition(null, 20);
Back to top