Skip to main content

Interface: NavigationContextValue

Represents the value of the NavigationContext.

Properties​

currentMonth​

• currentMonth: Date

The month to display in the calendar. When numberOfMonths is greater than one, is the first of the displayed months.

Defined in​

src/contexts/Navigation/NavigationContext.tsx:15


displayMonths​

• displayMonths: Date[]

The months rendered by DayPicker. DayPicker can render multiple months via numberOfMonths.

Defined in​

src/contexts/Navigation/NavigationContext.tsx:17


goToDate​

• goToDate: (date: Date, refDate?: Date) => void

Type declaration​

▸ (date, refDate?): void

Navigate to the specified date.

Parameters​
NameType
dateDate
refDate?Date
Returns​

void

Defined in​

src/contexts/Navigation/NavigationContext.tsx:21


goToMonth​

• goToMonth: (month: Date) => void

Type declaration​

▸ (month): void

Navigate to the specified month.

Parameters​
NameType
monthDate
Returns​

void

Defined in​

src/contexts/Navigation/NavigationContext.tsx:19


isDateDisplayed​

• isDateDisplayed: (day: Date) => boolean

Type declaration​

▸ (day): boolean

Whether the given day is included in the displayed months.

Parameters​
NameType
dayDate
Returns​

boolean

Defined in​

src/contexts/Navigation/NavigationContext.tsx:27


nextMonth​

• Optional nextMonth: Date

The next month to display.

Defined in​

src/contexts/Navigation/NavigationContext.tsx:23


previousMonth​

• Optional previousMonth: Date

The previous month to display.

Defined in​

src/contexts/Navigation/NavigationContext.tsx:25