Documentation / @jalali-js/ui-react / RangePickerProps
Interface: RangePickerProps
Defined in: ui-react/src/RangePicker.tsx:36
Properties
blockHolidays?
optionalblockHolidays?:boolean
Defined in: ui-react/src/RangePicker.tsx:60
Also block holiday days through selection rules. Jalali system only.
className?
optionalclassName?:string
Defined in: ui-react/src/RangePicker.tsx:64
defaultRange?
optionaldefaultRange?:DateRange
Defined in: ui-react/src/RangePicker.tsx:42
The initial range. Default: none (the picker opens with nothing selected).
displayFormat?
optionaldisplayFormat?:FormatOptions
Defined in: ui-react/src/RangePicker.tsx:50
holidayRegion?
optionalholidayRegion?:HolidayRegion
Defined in: ui-react/src/RangePicker.tsx:62
Whose official holiday list to use. Default: 'IR' (Iran).
locale?
optionallocale?:LocaleCode
Defined in: ui-react/src/RangePicker.tsx:40
Which language the picker's text reads in. Default: 'en'.
onChange?
optionalonChange?: (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
range
Returns
void
placeholder?
optionalplaceholder?:string
Defined in: ui-react/src/RangePicker.tsx:63
rules?
optionalrules?: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?
optionalshowHolidays?:boolean
Defined in: ui-react/src/RangePicker.tsx:58
Mark official holidays with data-holiday. Jalali system only. Default: Iran.
system?
optionalsystem?:CalendarSystem
Defined in: ui-react/src/RangePicker.tsx:38
Which calendar system the picker displays and selects in. Default: 'jalali'.
valueFormat?
optionalvalueFormat?:ValueFormat
Defined in: ui-react/src/RangePicker.tsx:49