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.column.id - column id (resources view only)
  • args.column.name - column name
  • args.column.start - column start date
  • args.column.data - column source data object (from columns.list)
  • 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