Search
Calendar.itemDeleted Event
See Also
 






Raised when an item is deleted.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

JavaScript  Copy Code

EventDispatcher itemDeleted

 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 ItemModifiedEventArgs 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 itemDeleted event of a calendar. In the handler method we assign the subject of the deleted item to a variable.

JavaScript  Copy Code

var p = MindFusion.Scheduling;

// attach a handler - when a calendar item is deleted
calendar.itemDeleted.addEventListener(handleItemDeleted);

function handleItemDeleted(sender, args) {
    //the args.item argument gives information about the item that was deleted
     var subjectOfNoInterest = args.item.subject;
     
}

 See Also