Pastes items from the clipboard at the specified date and resource.
Namespace: MindFusion.Scheduling
File: Calendar.js
SyntaxJavaScript
Copy Code
|
|---|
function pasteFromClipboard ([toSelection, [date, [resource]]]) |
Boolean. true to paste to the current selection's date and resource.
DateTime. The date to paste to, if toSelection argument is false.
Resource. The resource to paste to, if toSelection argument is false.
RemarksPastes items from the clipboard into the calendar at the currently selected date and resource, or to ones specified as parameters. If no date range is selected or specified as argument, the items are added using their original scheduled times; otherwise, they are offset relative to the start of the selection to maintain their relative positions.
The itemPasting event serves as a validation hook, allowing you to inspect each item before it is added to the schedule and optionally skip specific items by setting the cancel property to true.
See Also