DayPilot.Scheduler.contextMenu

DayPilot Menu object used for event menu.  

Declaration

DayPilot.Scheduler.contextMenu (DayPilot.Menu class)

Default Value

null

Example

dps.contextMenu = new DayPilot.Menu([
    {text:"Show event ID", onclick: function() {alert("Event value: " + this.source.value());} },
    {text:"Show event text", onclick: function() {alert("Event text: " + this.source.text());} },
    {text:"Show event start", onclick: function() {alert("Event start: " + this.source.start().toStringSortable());} },
    {text:"Go to google.com", href: "http://www.google.com/?q={0}"},
    {text:"CallBack: Delete this event", command: "delete"} 
]);

Related Properties

Main menu

DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java