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

Add possibility to define disabled days #55

Closed
asergeev-sc opened this issue Jun 25, 2018 · 2 comments
Closed

Add possibility to define disabled days #55

asergeev-sc opened this issue Jun 25, 2018 · 2 comments

Comments

@asergeev-sc
Copy link
Contributor

Meta-Info Value
ExtProjectId JCPROC-01
Original Estimation 10h
Remaining Estimation 10h

Add the same possibilities as it is available in react-day-picker disabledDays. This possibility should be available in the following components:

  • DateInput
  • DateRangeInput
@kvolkovich-sc
Copy link
Contributor

@nstoliar-sc, please test.

https://opuscapita.github.io/react-dates/branches/issue-55-disabled-days/?currentComponentName=DateInput

Each of DateInput, DatePicker, DateRangeInput components has example with disabled days.

@nstoliar-sc
Copy link

Tested. DateInput, DatePicker, DateRangeInput contain disabled days which could not be selected. Please, merge with mater branch.

kvolkovich-sc added a commit that referenced this issue Aug 23, 2018
API changes
===

Added new property `modifiers`.
Implemented default `disabled` modifier.
Disabled days validation and display for `DateInput` and `DateRangeInput` components can be implemented by validation at parent component level and passing validation result to `isValid` property.
For validation use `import { ModifiersUtils } from @opuscapita/react-dates`.
See component documentation for details.
@ocmachineuser ocmachineuser added this to the 0.5.5 milestone Aug 23, 2018
@asergeev-sc asergeev-sc removed their assignment Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants