onCellClick

fires when the user makes a single click on a cell (the Timeline view only)

void onCellClick(number x_ind,number y_ind,object x_val,array y_val,Event e);
x_indnumberthe column index of the clicked cell (zero-based numbering)
y_indnumberthe row index of the clicked cell (zero-based numbering)
x_valobjecta Date object of the start time stamp of the clicked cell
y_valarrayan array of data items' objects resided in the clicked cell
eEventa native event object

Example

scheduler.attachEvent("onCellClick", function (x_ind, y_ind, x_val, y_val, e){
    //any custom logic here
});

Details

The event fires in the Timeline view only

Back to top