Skip to content

egui_extras: Add more years for datepicker#3599

Merged
emilk merged 1 commit intoemilk:masterfrom
vaqxai:patch-1
Nov 28, 2023
Merged

egui_extras: Add more years for datepicker#3599
emilk merged 1 commit intoemilk:masterfrom
vaqxai:patch-1

Conversation

@vaqxai
Copy link
Contributor

@vaqxai vaqxai commented Nov 21, 2023

Birthdates really needed this

Kinda closes #3597.

Birthdates really needed this
@Mingun
Copy link
Contributor

Mingun commented Nov 21, 2023

It seems it is better to add a setting to the widget rather than trying to guess best value for everyone...

@vaqxai
Copy link
Contributor Author

vaqxai commented Nov 22, 2023

The change proposed in this PR is just a temporary, instant fix. I don't think there's a reason not to have 100 years, as it will cover most use-cases including birthdates. I'll be adding a full range option soon, too, though.

@emilk emilk changed the title More years for datepicker egui_extras: Add more years for datepicker Nov 28, 2023
@emilk emilk merged commit 37244e3 into emilk:master Nov 28, 2023
emilk pushed a commit that referenced this pull request Jun 16, 2025
…citly (#7061)

Add the ability to set the `DatePickerButton`'s start and end years via
new `start_year` and `end_year` methods.

Continue to use the existing today - 100 years and today + 10 years
behavior if a year is not specified.

* This more fully closes <#3597> and
expands on <#3599>.
* [x] I have followed the instructions in the PR template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Datepicker year range manual selection

3 participants