Altinn / Altinn/app-frontend-react
Set default start time in Datepicker
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 33
- Avg merge
- 6d 23h
- Merged PRs (30d)
- 3
Description
### Description
Hello, in the Datepicker component we can set max and min date, but i was wondering if we could get a feature to set the default start time as well? The example under shows what it looks like if i set the the max and min date to a year in the future. I would like to be able set the default start so that it opens for for example today, but one year in the future so i would not have to adjust the year by default.
### Additional Information
_No response_
Contributor guide
Research direction
Start by locating the Datepicker component and reading how its existing minimum and maximum dates determine the initially displayed period. Check the component's current usage and tests, if present, then define the expected behavior for a configurable default start time and verify that the picker opens at that time without changing the min/max constraints.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100