Skip to main content

onBeforeEventPasted

Description

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

onBeforeEventPasted: (isCopy: boolean, pasted_ev: object, original_ev: object) => boolean

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)

Returns

  • result - (boolean) - defines whether the default action of the event will be triggered (true) or canceled (false)

Example

scheduler.attachEvent("onBeforeEventPasted", function(isCopy,pasted_ev,original_ev) {
// here you can modify `pastedEvent`
return true;
});

Details

The 'keyboard navigation' extension should 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.