Angular Scheduler Event Link Delete ContentMenu

Asked by Bcos
6 years ago.

Hi There,
https://code.daypilot.org/86334/angular-scheduler-event-links

On Gantt Chart, i was able to use contextMenuLink to right click on link to delete.

However on Scheduler Chart, cannot use contextMenuLink , compiler show 'contextMenuLink' does not exist in type 'SchedulerConfig'

config: DayPilot.SchedulerConfig ={
contextMenuLink: new DayPilot.Menu({
      items: [
        {
          text: 'Delete Link',
          onClick(args) {
            const dp = args.source.calendar;
            dp.links.remove(args.source);
          }
        }
      ]
    })
}

error:

 Object literal may only specify known properties, and 'contextMenuLink' does not exist in type 'SchedulerConfig'.

How to delete the event link on scheduler event?

Thank you

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