Search
Calendar.itemDoubleClick Event
See Also
 






Raised when an item is double-clicked.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

JavaScript  Copy Code

EventDispatcher itemDoubleClick

 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
An ItemEventArgs 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 itemDoubleClick event of a calendar. In the handler method we check if the location of the item that was double-clicked is "Paris".

JavaScript  Copy Code

var p = MindFusion.Scheduling;

// attach a handler - when a calendar item is double-clicked.
calendar.itemDoubleClick.addEventListener(handleItemDoubleClick);

function handleItemDoubleClick(sender, args) {
    /* the args.item argument gives information about
     * the item that was double-clicked */
     if(args.item.location.name == "Paris")
          {
             //do something
              .............
          }
     
}

 See Also