Invoked when an item is about to be pasted from the clipboard.
Namespace: MindFusion.Scheduling
File: Calendar.js
SyntaxJavaScript
Copy Code
|
|---|
calendar.itemPasting.addEventListener(onItemPasting); function onItemPasting(sender, args) |
Event DataThe 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.
RemarksThis 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