DayPilot.Scheduler.contextMenuSelection

contextMenuSelection (DayPilot.Menu class)

DayPilot Menu object used for time range selection context menu.

Default Value

null

Example

var menu = new DayPilot.Menu();
menu.items = [
{'text':'Create new event (JavaScript)', 'onclick':function() { dps.timeRangeSelectedCallBack(this.source.start, this.source.end, this.source.resource); }},
{'text':'Create new event (CallBack)', 'command':'Insert', 'action':'CallBack'},
{'text':'-'},
{'text':'Show selection details', 'onclick':function() { alert('Start: ' + this.source.start + '\nEnd: ' + this.source.end + '\nResource id: ' + this.source..resource); }},
{'text':'Clean selection', 'onclick':function() { dps.clearSelection(); }];;

dps.contextMenuSelection = menu;

Related Properties

Main menu

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