javascript html5 scheduler link context menu

You can enhance the functionality of links in the JavaScript Scheduler by adding a context menu with additional actions. A common use case is providing an option to delete a link.

To define a link menu, use the contextMenuLink property.

Example

Scheduler config:

{
  contextMenuLink: new DayPilot.Menu({
    items: [
      {
        text: "Delete".
        onClick: args => dp.links.remove(args.source)
      }
    ]
  }),
  // ...
}