Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1746

How I can disable many specific dates in Melt UI calendar?

$
0
0

I have this property for Melt Calendar:

const {  elements: { calendar, heading, grid, cell, prevButton, nextButton },  states: { months, headingValue, weekdays },  helpers: { isDateDisabled, isDateUnavailable }} = createCalendar({  defaultValue: new CalendarDate(year, month, day),  locale: 'ph',  fixedWeeks: true,  isDateUnavailable: (date) => {    return isWeekend(date, 'en')  }}); 

I can also disable specific date by using:

isDateDisabled: (date) => {  return date.day == 1}

But I can only do this once.

I want to disable more dates that are in array form, for example:Holidays = [12/25, ...]


Viewing all articles
Browse latest Browse all 1746

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>