Skip to content

Documentation / @jalali-js/ui-react / RangePickerProps

Interface: RangePickerProps ​

Defined in: ui-react/src/RangePicker.tsx:36

Properties ​

blockHolidays? ​

optional blockHolidays?: boolean

Defined in: ui-react/src/RangePicker.tsx:60

Also block holiday days through selection rules. Jalali system only.


className? ​

optional className?: string

Defined in: ui-react/src/RangePicker.tsx:64


defaultRange? ​

optional defaultRange?: DateRange

Defined in: ui-react/src/RangePicker.tsx:42

The initial range. Default: none (the picker opens with nothing selected).


displayFormat? ​

optional displayFormat?: FormatOptions

Defined in: ui-react/src/RangePicker.tsx:50


holidayRegion? ​

optional holidayRegion?: HolidayRegion

Defined in: ui-react/src/RangePicker.tsx:62

Whose official holiday list to use. Default: 'IR' (Iran).


locale? ​

optional locale?: LocaleCode

Defined in: ui-react/src/RangePicker.tsx:40

Which language the picker's text reads in. Default: 'en'.


onChange? ​

optional onChange?: (value, range) => void

Defined in: ui-react/src/RangePicker.tsx:48

Called once both ends of the range are picked, with value (both ends shaped by valueFormat) and range (the raw CalendarDate pair). See @jalali-js/react's DatePicker for why these are two separate shapes.

Parameters ​

value ​

RangeStorageValue

range ​

DateRange

Returns ​

void


placeholder? ​

optional placeholder?: string

Defined in: ui-react/src/RangePicker.tsx:63


rules? ​

optional rules?: SelectionRules

Defined in: ui-react/src/RangePicker.tsx:56

Limits on what a person can select (see isDateSelectable() in jalali-js). Blocked days render disabled and reject selection. A candidate range that crosses a blocked day does not complete: the click starts a new range at the clicked day instead.


showHolidays? ​

optional showHolidays?: boolean

Defined in: ui-react/src/RangePicker.tsx:58

Mark official holidays with data-holiday. Jalali system only. Default: Iran.


system? ​

optional system?: CalendarSystem

Defined in: ui-react/src/RangePicker.tsx:38

Which calendar system the picker displays and selects in. Default: 'jalali'.


valueFormat? ​

optional valueFormat?: ValueFormat

Defined in: ui-react/src/RangePicker.tsx:49