Skip to main content

onEventPasted

Description

Fires when the user presses the 'CTRL+V' keyboard command

onEventPasted: (isCopy: boolean, pasted_ev: object, original_ev: object) => void;

Parameters

  • isCopy - (required) boolean - indicates whether the event was copied or cut before pasting. The true value 'says' that the event was copied
  • pasted_ev - (required) object - the object of the new data item (the event that is created after pasting)
  • original_ev - (required) object - the object of the original data item (the event that was copied/cut)

Example

scheduler.attachEvent("onEventPasted", function(isCopy, pasted_ev, original_ev) {
//any custom logic here
});

Details

note

The event requires the key_nav extension to be enabled.

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.