Scheduler Event Context Menu during multiselect

Asked by Anonymous
8 years ago.

Hi,

I am trying to put a copy feature on the event context menu that will copy multiple events selected at once.

To do this, I need to access the data of all selected events, however, it appears that only the single right clicked event data is available within the Menu context:

this.scheduler.control.contextMenu = new DayPilot.Menu(
{
items: [
{text:"Copy Activity", onClick: function(e) { let eventData = e.source.data } }
]
}
)

Is there any way of accessing data of all selected events in the Menu context?

I'm working with Angular 5 Scheduler.

Thanks

This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.