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

Angular Scheduler Event Link Delete ContentMenu

Asked by Bcos
1 month 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]
1 month ago.

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

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

New Reply
This reply is
Your name (optional):