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

allowedDates #843

Open
duikb00t opened this issue Mar 15, 2021 · 1 comment
Open

allowedDates #843

duikb00t opened this issue Mar 15, 2021 · 1 comment

Comments

@duikb00t
Copy link

Hi,

Maybe I have overlooked something.
Is it possible to disable everything on the calendar and only use 'allowedDates' in a way?

Thanks!

@pavel-muset
Copy link

pavel-muset commented Jun 22, 2021

Hi. According to documentation, you can use the customPredictor function to implement a whitelist.
For example:

const whitelistArray = ['Some date', 'another date', ...];

disabledDates: {
	customPredictor: function (date) {
		if(!whitelist.includes(date)) {
			return true;
		}
	}
}

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

No branches or pull requests

2 participants