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

[Feature Request] Disable Dates #155

Open
The-Real-Thisas opened this issue Feb 13, 2022 · 2 comments
Open

[Feature Request] Disable Dates #155

The-Real-Thisas opened this issue Feb 13, 2022 · 2 comments

Comments

@The-Real-Thisas
Copy link

This is something I've used with flatpicker but flatpicker does not work on mobile and reverts to the native date picker.

I'm working on a booking application that requires a user to select an available date. Right now the application flow is the user checks the available dates then picks a date from the datepicker. This is less than ideal.

I think it will be incredibly useful as a prop and the moment it is added to svelte-calender I'm going to add it to my project in a heartbeat.

Related Doc:
https://flatpickr.js.org/examples/#disabling-specific-dates

Something like this:

{
    disable: ["2025-01-30", "2025-02-21", "2025-03-08", new Date(2025, 4, 9) ],
    dateFormat: "Y-m-d",
}
@Geeky-Mechanic
Copy link

Geeky-Mechanic commented May 4, 2022

Was going to ask about this, I guess i"ll try and do some other validation

@hdz-dev
Copy link

hdz-dev commented Nov 12, 2022

please! add this option.

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

3 participants