The CalHeading Object

The CalHeading Object is a container for properties and methods related to the calendar's day headings, such as highlighting columns on multi-select mode. There is no need to learn this object's functionality unless you plan to modify your calendar's inner workings.

Constructor

CalHeading(owner,tableCell,dayOfWeek)

The CalHeading object constructor. This function runs when a new instance of CalHeading is created (i.e. chead = new CalHeading(...)).

Arguments

  • Epoch owner
  • HTMLTableCell tableCell
  • int dayOfWeek

Return Values

(none)

Public Properties

dayOfWeek

int {0,1,2,3,4,5,6} CalHeading::dayOfWeek

The day of week (0:Sunday to 6:Saturday) this CalHeading is associated with.

Private Properties

(none)

Private Methods

dayHeadingonclick()

Event handler that selects/deselects the calendar cells whose days match this object's day of week. Called when the user clicks on a day heading in multiselect mode only.

Arguments

(none)

Return Values

(none)

Usage

This method itself cannot be called directly; it is assigned to a DOM element from the CalHeading constructor.