DayPilot.Calendar.onHeaderClick

The onHeaderClick event handler is fired when the user clicks a calendar column header. It is fired before the default action specified using headerClickHandling.

Declaration

DayPilot.Calendar.onHeaderClick(args);

Parameters

  • args.header.id - column id (resources view only)
  • args.header.name - column name
  • args.header.start - column start date
  • args.originalEvent - original click event object - available since 2020.2.4545
  • args.shift - status of the Shift key (boolean) - available since 2020.2.4545
  • args.ctrl - status of the Ctrl key (boolean) - available since 2020.2.4545
  • args.meta - status of the Meta key  (boolean) - available since 2020.2.4545
  • args.preventDefault()

See Also

api=1

Legacy API mode used in ASP.NET WebForms and ASP.NET MVC versions.

Declaration

DayPilot.Calendar.onHeaderClick(c)

Parameters

  • c (DayPilot.Column) - column reference

DayPilot.Column is a simple class with three properties:

  • name (string) - column name
  • value (string) - column value
  • date (DayPilot.Date) - column date