search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Angular Scheduler Event Link Delete ContentMenu

Asked by Bcos
4 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

Answer posted by Dan Letecky [DayPilot]
4 years ago.

The SchedulerConfig.contextMenuLink property is now supported in the latest version:

https://javascript.daypilot.org/daypilot-pro-for-javascript-2019-4-4153/

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