DayPilot.Scheduler.timeHeaders

Array that specifies the time headers: levels, groups, and date format.

Declaration

DayPilot.Scheduler.timeHeaders (array)

Description

Item properties:

  • groupBy (string; group size)
  • format (string; date/time format; optional)

groupBy values:

  • "Default" - uses the value specified in cellGroupBy (used for backwards compatibility)
  • "Cell" - uses a group size corresponding to cell size defined using scale
  • "Hour"
  • "Day"
  • "Week"
  • "Month"
  • "Quarter"
  • "Year"
  • "None"

format values:

See DayPilot.Date.toString() pattern variables.

Default value

[ {"groupBy": "Default"}, {"groupBy": "Cell"} ];

Example

dp.timeHeaders = [
  { groupBy: "Month", format: "MMMM yyyy" },
  { groupBy: "Day", format: "d"}
];

Main menu

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