Search
Calendar.itemPasting Event
See Also
 






Invoked when an item is about to be pasted from the clipboard.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

JavaScript  Copy Code

calendar.itemPasting.addEventListener(onItemPasting);

function onItemPasting(sender, args)
{
}

 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 ItemModifyingEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

 Remarks

This event is raised for each item retrieved from the clipboard before it is officially added to the schedule. It provides a validation point where you can inspect the item's properties, modify its state, or cancel the paste operation for that specific item by setting the cancel property to true.

 See Also