Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date range filter: custom initial value #245

Closed
Tracked by #268
chaoran-chen opened this issue May 19, 2024 · 2 comments · Fixed by #256
Closed
Tracked by #268

Date range filter: custom initial value #245

chaoran-chen opened this issue May 19, 2024 · 2 comments · Fixed by #256
Assignees
Labels
components Regarding the components

Comments

@chaoran-chen
Copy link
Member

It should be possible to set any arbitrary date range as the initial value. (I think that's not possible at the moment?)

@chaoran-chen chaoran-chen added the components Regarding the components label May 19, 2024
@JonasKellerer
Copy link
Collaborator

It is currently not possible, only selecting from the predefined list.

@fengelniederhammer
Copy link
Collaborator

As discussed:

The component should have two attributes initialFrom and initialTo. If any of them is set, it overwrites the initialValue to use custom. Of exactly one of them is set, take a default for the other (earliest date / today).

fengelniederhammer added a commit that referenced this issue May 23, 2024
… `dateTo` values from `initialValue` #245

Bug: It always took the values for `last6Months`
fengelniederhammer added a commit that referenced this issue May 23, 2024
…From`, `initialDateTo` #245

They overwrite the `initialValue` and directly set a custom date range.
fengelniederhammer added a commit that referenced this issue May 23, 2024
…From`, `initialDateTo` #245

They overwrite the `initialValue` and directly set a custom date range.
fengelniederhammer added a commit that referenced this issue May 28, 2024
fengelniederhammer added a commit that referenced this issue May 28, 2024
… `dateTo` values from `initialValue` #245

Bug: It always took the values for `last6Months`
fengelniederhammer added a commit that referenced this issue May 28, 2024
…From`, `initialDateTo` #245

They overwrite the `initialValue` and directly set a custom date range.
fengelniederhammer added a commit that referenced this issue May 28, 2024
… `dateTo` values from `initialValue` #245

Bug: It always took the values for `last6Months`
fengelniederhammer added a commit that referenced this issue May 28, 2024
…From`, `initialDateTo` #245

They overwrite the `initialValue` and directly set a custom date range.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
components Regarding the components
Projects
None yet
3 participants