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.

Source

src/contexts/Navigation/NavigationContext.tsx:18


displayMonths

displayMonths: Date[]

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

Source

src/contexts/Navigation/NavigationContext.tsx:23


goToDate()

goToDate: (date, refDate?) => void

Navigate to the specified date.

Parameters

ParameterType
dateDate
refDate?Date

Returns

void

Source

src/contexts/Navigation/NavigationContext.tsx:27


goToMonth()

goToMonth: (month) => void

Navigate to the specified month.

Parameters

ParameterType
monthDate

Returns

void

Source

src/contexts/Navigation/NavigationContext.tsx:25


isDateDisplayed()

isDateDisplayed: (day) => boolean

Whether the given day is included in the displayed months.

Parameters

ParameterType
dayDate

Returns

boolean

Source

src/contexts/Navigation/NavigationContext.tsx:33


nextMonth?

optional nextMonth: Date

The next month to display.

Source

src/contexts/Navigation/NavigationContext.tsx:29


previousMonth?

optional previousMonth: Date

The previous month to display.

Source

src/contexts/Navigation/NavigationContext.tsx:31