Skip to main content
Version: 10.0.0-next.6

Class: CalendarWeek

Defined in: packages/react-day-picker/src/classes/CalendarWeek.ts:8

Represents a week in a calendar month.

A CalendarWeek contains the days within the week and the week number.

Constructors

Constructor

new CalendarWeek(weekNumber, days): CalendarWeek

Defined in: packages/react-day-picker/src/classes/CalendarWeek.ts:9

Parameters

Returns

CalendarWeek

Properties

days

days: CalendarDay[]

Defined in: packages/react-day-picker/src/classes/CalendarWeek.ts:18

The days that belong to this week.


weekNumber

weekNumber: number

Defined in: packages/react-day-picker/src/classes/CalendarWeek.ts:15

The number of the week within the year.