Show 'All Time' or [null, null] value in the ranges. #2259
Unanswered
jithinbabychan
asked this question in
Q&A
Replies: 1 comment
-
You understand correctly how it works. A null selection is not supported. |
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
-
I have been showing All Time (ie null value) in the ranges using an arbitrary large range like
'All time': [moment('1970-01-01'), moment()],
. But the issue with this method is, if we select the custom range after selecting theAll Time
, the calendars in the view will be in the year 1970 (and it will be a pain to come back to the current month).Then I thought of using a range like
'All Time': [null, null]
. But seems like the DateRangePicker always needs a date to be selected and dont allow empty or null values (null values throw errors in theclickRange
andcalculateChosenLabel
methods).Is there any way I can make this work?
Beta Was this translation helpful? Give feedback.
All reactions