hi guys
I am using a Jquery calendar and it can select the date and I have added a vue.js validation to ensure the date selected is not beyond 90 days from todays date.
PROBLEM
I want to disable any future date from 90 days and tried using the
I have tried both property validDate and visibleRange to stop users from selecting any date greater than 90 days
I have searched online and not seen any similar to the fullcalendar with restricted dates as of posting this. thanks
$('div[data-type="datepicker-coverStartDate"]').fullCalendar({
dayClick: function (date, allDay, jsEvent, view) {
if (moment(date).isSameOrAfter(moment().startOf('day'))) {
$('.fc-state-highlight').removeClass("fc-state-highlight");
$(this).addClass("fc-state-highlight");
console.log('Clicked on the entire day: ' + date);
onDatePickerChanged('coverStartDate', date.toLocaleDateString("en-gb"));
}
}
Styling it looks to be harder…according to the documentation, the dates outside of the range are supposed to be greyed out, but it doesn’t look like it works that way based on my testing, nor is a class added to either the dates in range, or to the dates out of range that can be styled.