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

Change Year Directly from control #52

Open
tpruthi opened this issue Sep 20, 2016 · 6 comments
Open

Change Year Directly from control #52

tpruthi opened this issue Sep 20, 2016 · 6 comments

Comments

@tpruthi
Copy link

tpruthi commented Sep 20, 2016

Is there any way to change to year directly like previous version

@jkuri
Copy link
Contributor

jkuri commented Sep 20, 2016

unfortunately not. it was nasty looking with that double arrows and I decided to remove it with the new version.

@tpruthi
Copy link
Author

tpruthi commented Sep 20, 2016

But it was a good feature. If end user will have to select DOB as 17-04-1952. He will have to press a lot of time. Which is not good

@jkuri
Copy link
Contributor

jkuri commented Sep 20, 2016

you are right about that for sure. its not a feature that's hard to implement just didn't found the way to be consistent with the new design. is the double click maybe an option?

@tpruthi
Copy link
Author

tpruthi commented Sep 20, 2016

For a better design you can implement like windows datepicker. where on clicking the month no of months appear and on clicking again on year, It populates a list of years. It is also implemented in ng2-bootstrap

@RajniShriramoji
Copy link

Hi, can we use old version for changing year directly as this is removed in latest version.
Can you please suggest which version we need to use for changing year directly.

Thanks!

@hydra1983
Copy link

hydra1983 commented Oct 9, 2016

Maybe allowToChangeYears can be provided to achieve this.

    prevYear() {
        this.date = this.date.subtract(1, 'year');
        this.generateCalendar();
    }

    nextYear() {
        this.date = this.date.add(1, 'year');
        this.generateCalendar();
    }

image

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

4 participants