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

feat(disable): add callback to allow disable custom dates #99

Merged
merged 3 commits into from
Sep 15, 2024

Conversation

JHPG
Copy link
Contributor

@JHPG JHPG commented Jul 16, 2024

Intent

With the level of customization the library offers, it should be able to disable custom dates like weekends, holidays, or any custom case.

Proposed changes

A new optional callback prop isDateDisabled was added to allow the date to be disabled using an optional validation function.
An example was added to the example app App.tsx.

Demo (included in the example app comments) - disable weekends

Does this introduce a breaking change?

  • Yes
  • No

@mitri-dvp
Copy link
Contributor

Hi JHPG I’ve liked your approach and have extended the functionality by adding compatibility for disabling dates based on a disabled dates list. Here’s my PR.

@farhoudshapouran farhoudshapouran merged commit 4c7cacd into farhoudshapouran:main Sep 15, 2024
0 of 3 checks passed
@JHPG JHPG deleted the feat/is-date-disabled branch December 8, 2024 22:59
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.

3 participants