Skip to main content

DayCellProps

Props for DayCell

Properties

date

date: Date;

Date this cell represents


events

events: CalendarEvent[];

Events falling on this date


isCurrentMonth

isCurrentMonth: boolean;

Whether the date belongs to the currently displayed month


isLastCol

isLastCol: boolean;

Whether this cell is in the last column (no right border)


isLastRow

isLastRow: boolean;

Whether this cell is in the last row (no bottom border)


isToday

isToday: boolean;

Whether the date is today


isWeekend

isWeekend: boolean;

Whether the date falls on a Saturday or Sunday


onSelect()

onSelect: (date) => void;

Callback when the cell is clicked

Parameters

ParameterType
dateDate

Returns

void