The timeRangeMenuClickCallBack() method fires the server-side TimeRangeMenuClick event using a callback in ASP.NET WebForms, ASP.NET MVC, and Java.
Declaration
DayPilot.Calendar.timeRangeMenuClickCallBack(s, command[, data]);Parameters
s(DayPilot.Selection) - selected time rangecommand(string) - command value passed to the server-sideTimeRangeMenuClickeventdata(object) - optional additional custom data
DayPilot.Selection is a simple object with the following properties:
start(DayPilot.Date) - selection startend(DayPilot.Date) - selection endresource(string) - resource value (id)
Example
const selection = dp.getSelection();
dp.timeRangeMenuClickCallBack(selection, "delete");
DayPilot