Skip to content

Add an includeTimes prop #1216

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

Merged

Conversation

jennyscript-ridecell
Copy link
Contributor

@jennyscript-ridecell jennyscript-ridecell commented Jan 19, 2018

This option is the same idea as "includeDates" but applies to the time select. Only times that are included in the "includeTimes" list and also match up with settings like "timeIntervals" will be included. All other times are disabled.

This uses the same helper function as "excludeTimes" for implementation.

@jennyscript-ridecell jennyscript-ridecell changed the title Add an includeTimes param Add an includeTimes prop Jan 19, 2018
@jennyscript-ridecell jennyscript-ridecell force-pushed the feature/add-include-times branch 2 times, most recently from 05b8e33 to 62e6ff7 Compare January 19, 2018 05:34
@codecov
Copy link

codecov bot commented Jan 19, 2018

Codecov Report

Merging #1216 into master will increase coverage by 0.54%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1216      +/-   ##
==========================================
+ Coverage   86.19%   86.73%   +0.54%     
==========================================
  Files          15       15              
  Lines        1014     1018       +4     
  Branches      165      165              
==========================================
+ Hits          874      883       +9     
+ Misses         42       38       -4     
+ Partials       98       97       -1
Impacted Files Coverage Δ
src/calendar.jsx 85.88% <ø> (-0.45%) ⬇️
src/time.jsx 61.36% <ø> (+6.6%) ⬆️
src/index.jsx 88% <ø> (-0.5%) ⬇️
src/date_utils.js 95.75% <100%> (+2.35%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8e1eea0...6a4193c. Read the comment docs.

This option is the same idea as "includeDates" but applies to the time select.
Only times that are included in the "includeDates" list and also match up with
settings like "timeIntervals" will be included. All other times are disabled.

This uses the same helper function as "excludeTimes" for implementation.
@jennyscript-ridecell
Copy link
Contributor Author

jennyscript-ridecell commented Jan 22, 2018

Is there any additional work needed here before it can be merged? I see a few PRs have been merged by @mnikkane since I submitted this one, so please provide feedback if you'd like to see anything else here.

I'd really like to use the datepicker on my company's application and we need this feature. Also, I've found some bugs I'd be happy to submit PRs for after this one.

@rafeememon
Copy link
Contributor

Looks good, thanks!

@rafeememon rafeememon merged commit 41b6e30 into Hacker0x01:master Jan 23, 2018
@jennyscript-ridecell jennyscript-ridecell deleted the feature/add-include-times branch January 23, 2018 21:32
Squar89 pushed a commit to Squar89/react-datepicker2 that referenced this pull request Apr 10, 2019
…add-include-times

Add an includeTimes prop
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

Successfully merging this pull request may close these issues.

2 participants