DayPilot.Menu Constructor

The constructor accepts an array of menu items as a parameter.

Example

var menu = new DayPilot.Menu([
    {text: "Delete this event", command: "delete"},
    {text: "Custom command", command: "custom" },
    {text: "Show event start", onclick: function() {alert(this.source.start().toStringSortable());} }
]);