Disabling dates with an array
Closed this issue · 1 comments
Dalt0x commented
I'm trying to send an array of dates to choose which dates i don't want to disabling. Thre's any way to do that with an array or similar?
Example:
:isDateDisabled=[2019-08-20, 2019-08-30, ...]
dbrekalo commented
It is easily achievable via isDateDisabled check:
isDateDisabled(dateObject) {
return ['2019-08-20', '2019-08-30'].includes(
formatDate('YYYY-MM-DD')
);
}