Skip to content

Documentation / @jalali-js/holidays / withHolidaysBlocked

Function: withHolidaysBlocked()

withHolidaysBlocked(year, month, base?, options?): HolidaySelectionRules

Defined in: picker.ts:34

Merge holiday dates into disabledDates for the displayed month and its neighbors. Leaves other rule fields unchanged. When enabledDates is set, the whitelist still wins inside isDateSelectable(), so holidays are not forced through that path.

Parameters

year

number

month

number

base?

HolidaySelectionRules

options?

HolidayQueryOptions

Returns

HolidaySelectionRules