
The Gantt components supports link context menu. It can be activated by right-clicking the link.
JavaScript
Use .contextMenuLink property:
dp.contextMenuLink = new DayPilot.Menu({items: [
{text:"Show link ID", onclick: function() { alert("Link ID: " + this.source.data.id);} },
{text:"Delete link", onclick: function() { dp.links.remove(this.source);} }
]});Availability
Availability of this feature in DayPilot editions:
| Lite | Pro | |
|---|---|---|
| DayPilot for JavaScript | ||
| DayPilot for ASP.NET WebForms | ||
| DayPilot for ASP.NET MVC | ||
| DayPilot for Java |
DayPilot