CalendarCellData

A single cell within a view matrix (month, year, or decade).

Props

The following table outlines the props for the CalendarCellData:

NameTypeDefaultDescription
col
number
-

The zero-based column index in the matrix.

date
Date
-

The canonical date represented by this cell.

  • month view: the actual date of the day cell
  • year view: the first day of the month
  • decade view: January 1st of the year
inRange
boolean
-

Whether this cell belongs to the main range of the base view.

  • month: same month as baseDate
  • year: same year as baseDate (typically true for a 4x3 matrix)
  • decade: within the decade range (baseStart..baseStart+9)
isToday
boolean
-

True if the cell corresponds to today's date (only meaningful for month view, but provided consistently).

isWeekend
boolean
-

True if the cell falls on a weekend (only meaningful for month view, but provided consistently).

kind
-

The view kind that generated this cell.

label
string
-

A display label suitable for the cell (e.g., day number, month short name, or year).

row
number
-

The zero-based row index in the matrix.