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

Calendar - add option to change step size in yearpicker #15634

Closed
bjuergens opened this issue May 21, 2024 · 0 comments · Fixed by #15419
Closed

Calendar - add option to change step size in yearpicker #15634

bjuergens opened this issue May 21, 2024 · 0 comments · Fixed by #15419
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@bjuergens
Copy link

In the calendar-widget, it is possible to select a year via yearpicker. This yearpicker always shows an entire decade. Also the yearpicker is much smaller than the other parts of the caledner (e.g. daypicker, monthpicker), so the yearpicker has some room for growth (in size). The "small" yearpicker size, is a problem, when you select dates, that are far away from the current year (e.g. birthdays).

I propose two things:

  • add an option to change the number of years displayed for the yearpicker
  • change the default from 10 to 20 years

I implemented it in the PR, where I also posted some screenshots.

Comparison to material-datepicker:

the calendar tool in material-design has a stepsize of 24 for the year picker. This has the benefit, that you need to click less. It has the downside, that 24 is not a multiple of 10, and there for the years "jump around" when you make a step in the yearpicker, which makes it a little annoying to use.

The material-datepicker has 4 columns, which I think

related discussion: https://github.com/orgs/primefaces/discussions/1780

related PR: #15419

@github-actions github-actions bot added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 21, 2024
@cetincakiroglu cetincakiroglu added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add Type: New Feature Issue contains a new feature or new component request and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels May 30, 2024
@cetincakiroglu cetincakiroglu added this to the 17.18.0 milestone May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants