Skip to content

Documentation / @jalali-js/react / CalendarProps

Interface: CalendarProps

Defined in: react/src/Calendar.tsx:11

Properties

className?

optional className?: string

Defined in: react/src/Calendar.tsx:31


initialDisplayedMonth?

optional initialDisplayedMonth?: object

Defined in: react/src/Calendar.tsx:20

The year/month the grid opens on. Default: value's month, or today's.

month

month: number

year

year: number


locale?

optional locale?: LocaleCode

Defined in: react/src/Calendar.tsx:15

Which language the month title and weekday headers read in. Default: 'en'.


onSelect?

optional onSelect?: (date) => void

Defined in: react/src/Calendar.tsx:18

Parameters

date

CalendarDate

Returns

void


quickNav?

optional quickNav?: boolean

Defined in: react/src/Calendar.tsx:25

Let a person click the month or year in the header to jump straight to a month grid or a year grid, instead of paging one month at a time. Default: true.


rules?

optional rules?: SelectionRules

Defined in: react/src/Calendar.tsx:30

Limits on what a person can select (see isDateSelectable() in jalali-js). Blocked days render disabled, with a data-disabled attribute, and reject selection.


system?

optional system?: CalendarSystem

Defined in: react/src/Calendar.tsx:13

Which calendar system to display. Default: 'jalali'.


value?

optional value?: CalendarDate | null

Defined in: react/src/Calendar.tsx:17

The selected date, or null for none.