-
-
Notifications
You must be signed in to change notification settings - Fork 921
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
Daterangepicker limit start year #3163
Daterangepicker limit start year #3163
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
@loposkin is attempting to deploy a commit to the rsuite Team on Vercel. A member of the Team first needs to authorize it. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 500a0e0:
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #3163 +/- ##
==========================================
+ Coverage 93.43% 93.44% +0.01%
==========================================
Files 562 562
Lines 20395 20415 +20
Branches 2739 2739
==========================================
+ Hits 19056 19077 +21
Misses 694 694
+ Partials 645 644 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@loposkin Thank you!
LGTM. I'll push a commit to add the new prop in Chinese doc, and the PR is going to be merged.
CHANGES
Added
limitStartYear
prop toDatePicker
andDateRangePicker
. Usage:Display current year only:
Display years between previous and next year:
This looks like:
![limit_start_year](https://user-images.githubusercontent.com/21282847/230661533-9e520080-f132-4a7d-929e-836f848d88f3.png)
If unset, the start year still defaults to 1900
ISSUE
close #3145