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

Display first the years at show up #21

Open
nish-on opened this issue Jun 15, 2018 · 1 comment
Open

Display first the years at show up #21

nish-on opened this issue Jun 15, 2018 · 1 comment

Comments

@nish-on
Copy link

nish-on commented Jun 15, 2018

Hello,

I added your calendar plugin and like it very much. I would like to know if there is any possibility to display first the years before choosing the month and then the day?

Thanks

@fdreyfs
Copy link
Owner

fdreyfs commented Jun 15, 2018

Hi,
Thank you for using the add-on.

Something like this should do the trick :

TuningDateField tuningDateField = new TuningDateField();
tuningDateField.addCalendarOpenListener(evt -> {
    tuningDateField.setCalendarResolution(CalendarResolution.YEAR);
 });

Let me know wether it's what you expected.

Regards
Fred

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants