DateRangePicker #3686
Unanswered
abdullaev388
asked this question in
Q&A
DateRangePicker
#3686
Replies: 1 comment
-
I guess choosing the whole week's feature should be what you want. <DateRangePicker hoverRange="week" isoWeek ranges={[]} />
<DateRangePicker hoverRange="week" isoWeek oneTap ranges={[]} />
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my business logic there is "statement" business entity.
Statement starts on some day of week and its duration is always multiple of 7 (In weeks)
Lets pretend statements always start on Monday, in javascript monday is 1, and its duration is 7 days (1 week).
So i need DateRangePicker to only allow user to choose mondays of each week.
Here is how i implemented it:
https://codesandbox.io/p/sandbox/upbeat-ganguly-qqlqfx?file=%2Fsrc%2FApp.tsx
In codesandbox i provided, you can choose date range from 4 of march which is Monday, to 18 of March which is also monday.
BUT because days from 5 to 17 of March are disabled, i can not press OK button and submit the date.
Please help me what can i do with this.
Beta Was this translation helpful? Give feedback.
All reactions