Search
Calendar.cellDoubleClick Event
See Also
 






Raised when a calendar time cell is double-clicked.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

JavaScript  Copy Code

EventDispatcher cellDoubleClick

 Event Data

The event handler method receives the following arguments:
sender
A Calendar instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
A CellEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

 Example

The following example attaches a handler to the cellDoubleClick event of a calendar. In the handler method we check if the cell that was double-clicked is a header.

JavaScript  Copy Code

// attach a handler - double click of a calendar cell
calendar.cellDoubleClick.addEventListener(handleCellDoubleClick);

function handleCellDoubleClick(sender, args) {
    //the cell argument is of type ViewCell
    if(args.cell.isHeader == true)
      {
        //do something
        ...........
           
      }
}

 See Also