DayPilot.Scheduler.contextMenuResource

contextMenuResource (DayPilot.Menu class)

DayPilot Menu object used for resource header context menu.

Default Value

null

Example

var menu = new DayPilot.Menu();
menu.items = [
{'text':'Add child', 'command':'Insert', 'action':'CallBack'},
{'text':'-'},
{'text':'Delete', 'command':'Delete', 'action':'CallBack'},
{'text':'Delete children', 'command':'DeleteChildren', 'action':'CallBack'}];
menu.cssClassPrefix = 'menu_';
menu.menuTitle = 'Event';
menu.showMenuTitle = false;
menu.useShadow = true;
menu.zIndex = 10;

dps.contextMenuResource = menu;

Related Properties

Main menu

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