-
-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(calendar): add ability to disable months and years
This PR add the ability to disable entire month(s) and year(s) by using the disabledDates object. Example: disabledDates: [ { date: new Date("03/05/2020"), message: "One disabled date" }, { date: [new Date("02/11/2020"), new Date("02/12/2020"), new Date("02/13/2020")], message: "Array of disabled dates" }, { month: 3, message: "All April month are disabled" }, { month: [4, 5, 6], message: "May, June and July are disabled" }, { month: new Date("2020-03-01"), message: "Disabled month thank to a Date object" }, { year: 2021, message: "One disabled year" }, { year: [2018, 2019], message: "Array of disabled years" } ]
- Loading branch information
Showing
1 changed file
with
62 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters