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

getCellDimension

returns dimension of the specified date cell

object getCellDimension(Date|string date);

Parameters

dateDate|stringDate object or string in the current date format

Returns

objectcell dimension

Example

var dim = myCalendar.getCellDimension("2013-01-01"); 
console.log(dim);
// result:
{
    x: 100, // x-coord
    y: 100, // y-coord
    w: 27,  // width
    h: 24   // height
}

Details

if the cell is located out of the rendered month - dim is null

Back to top