Search
Calendar.pasteFromClipboard Method
See Also
 






Pastes items from the clipboard at the specified date and resource.

Namespace: MindFusion.Scheduling
Assembly: Calendar.js

 Syntax

JavaScript  Copy Code

function pasteFromClipboard ([toSelection, [date, [resource]]])

 Parameters

toSelection
Optional.

Boolean. true to paste to the current selection's date and resource.

date
Optional.

DateTime. The date to paste to, if toSelection argument is false.

resource
Optional.

Resource. The resource to paste to, if toSelection argument is false.

 Remarks

Pastes 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