DayPilot.Calendar.columns

The columns property (array) sets custom calendar columns in the resources view.

Item Structure

  • id (string): resource id (optional)
  • name (string): column name, it will be used to create "html" and "toolTip"
  • start (string or DayPilot.Date): column date (startDate will be used during initialization if not specified)
  • html (string): HTML to be displayed in the column header (optional)
  • toolTip (string): hover tooltip text (optional)
  • children (array of columns): column children when displaying column hierarchy

Example

dp.columns = [
  { name: "Meeting Room A", id: "A", start: "2015-04-14" },
  { name: "Meeting Room B", id: "B", start: "2015-04-14" },
  { name: "Meeting Room C", id: "C", start: "2015-04-14" }
];