-
Notifications
You must be signed in to change notification settings - Fork 54
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 #35
Comments
I think that with a simple change i can controlled the number of years and for example i would create a select of years: function goToPreviousYear(numYears = 1) {
setActiveMonths(
getNextActiveMonth(
activeMonths,
numberOfMonths,
-(numYears * 12 - numberOfMonths + 1)
)
);
setFocusedDate(null);
}
function goToNextYear(numYears = 1) {
setActiveMonths(
getNextActiveMonth(
activeMonths,
numberOfMonths,
numYears * 12 - numberOfMonths + 1
)
);
setFocusedDate(null);
} WDYT? 🤔 @tresko |
Would you create a pull request? It seems fine to me. |
Yes off course |
@johinsDev Waiting for it :) |
I will do it today or tomorrow. |
Included in v2.2. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I change year programmatically or with a method of useDatepicker?
The text was updated successfully, but these errors were encountered: