The contextMenuResource
property (DayPilot.Menu) specifies the context menu that will be used for the JavaScript Scheduler component row headers.
null
const scheduler = new DayPilot.Scheduler("dp", {
contextMenuResource: new DayPilot.Menu({
items: [
{'text':'Edit', onClick: args => scheduler.rows.edit(args.source) },
{'text':'-'},
{'text':'Delete', onClick: args => scheduler.rows.remove(args.source) }
],
}),
// ...
});
scheduler.init();
Event calendar/scheduling AJAX components. Available for JavaScript/HTML5/jQuery, ASP.NET, ASP.NET MVC. Build resource booking, project management, time tracking applications, personal and shared event calendars.