DayPilot.Calendar.timeRangeMenuClickCallBack

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 range

  • command (string) - command value passed to the server-side TimeRangeMenuClick event

  • data (object) - optional additional custom data

DayPilot.Selection is a simple object with the following properties:

Example

const selection = dp.getSelection();
dp.timeRangeMenuClickCallBack(selection, "delete");