DHTMLX Docs & Samples Explorer

getCellDimension(date)

Returns x,y,width,heigth of cell of specified date.

Parameters:

  • date - Date object or string in current date format

Returns:

  • null - if date incorrect or not visible
  • object { x: .., y: .., w: .., h: ..} - object with cell's x,y,width and height
var dim = myCalendar.getCellDimension("2013-01-01"); // dim can be: {x: 100, y: 100, w: 27, h: 24} or null