-
Hello everyone, Can someone kindly explain or show me how to enter the dates to be disabled? I am trying to create a Blade/Alpine component that will interface with Livewire. Everything works fine except for this feature which is essential for what I am doing. Thank you very much to anyone who can help me! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@algomera Hi. Another way to disabled dates is using const dp = new AirDatepicker('el');
dp.disableDate('2024-03-23')
// or passing array if you need multiple dates to be disabled
dp.disableDate(['2024-03-23', '2024-03-24'])
// After you can access all disabled dates like this
console.log(dp.disabledDates) |
Beta Was this translation helpful? Give feedback.
-
Hi, sorry to reopen the conversation but it is a question related to the problem in the thread. Thank you |
Beta Was this translation helpful? Give feedback.
@algomera Hi.
disabledDates
is a property of AirDatepicker instance, it's not an option. If you would like to have some dates disabled on start, you can useonRenderCell
option and return{disabled: true}
when you want this or that date to be disabled.Another way to disabled dates is using
disabledDate
method: