DayPilot.Menu.show

Displays the context menu.

Declaration

DayPilot.Menu.show(target)

Parameters

  • target - the target object - usually DayPilot.Event object (representing the event)

You will be able to access the "target" object in the onclick menu item handler as this.source.

Example

var menu = new DayPilot.Menu({
  items: [
    { text: "Details", action: "JavaScript", onclick: function() { alert("Name: " + this.source.name); }
  ]});


menu.show({name: "Object name"});

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