Search
Calendar.cueClick Event
See Also
 






Raised when an item cue is clicked.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

JavaScript  Copy Code

EventDispatcher cueClick

 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 cueClick event of a calendar. In the handler method we check if the cell whose cue was clicked starts from Friday.

JavaScript  Copy Code

// attach a handler - click of a cell cue
calendar.cueClick.addEventListener(handleCueClick);

function handleCueClick(sender, args) {
    //the cell argument is of type ViewCell
    if(args.cell.startTime.dayOfWeek == 4)
      {
        //do something
        ...........
           
      }
}

 See Also