Props
Prop | Type | Default |
---|---|---|
weekends | Array | *see default weekends |
Default Weekends
Calendar | Default Weekends |
---|---|
gregorian | [0, 6] |
persian | [6] |
arabic | [0, 6] |
indian | [0] |
Weekends: gregorian
import DatePicker from "react-multi-date-picker"
import weekends from "react-multi-date-picker/plugins/highlight_weekends"
.
.
.
<DatePicker
plugins={[weekends()]}
/>
Weekends: persian
import DatePicker from "react-multi-date-picker"
import weekends from "react-multi-date-picker/plugins/highlight_weekends"
.
.
.
<DatePicker
plugins={[weekends()]}
calendar={persian}
locale={persian_fa}
/>
Weekends: custom
import DatePicker from "react-multi-date-picker"
import weekends from "react-multi-date-picker/plugins/highlight_weekends"
.
.
.
<DatePicker
plugins={[weekends([5, 6])]}
/>