You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jcmendes9898 Unfortunately markDisabled can't be called after receiving the data. I think you can insert dummy events on these disabled dates, and use custom template to customize the dates that having dummy events, to display them as disabled look and feel.
Hi, I need to call the method for disabled dates after i received the dates. It s called when component load,
markDisabled = (date: Date) => { console.log("MARK_DISABLED") this.diaFeriadoArray.forEach(dia => { if (date.getTime() === new Date(dia.startTime.getFullYear(), dia.startTime.getMonth(), dia.startTime.getDate(), 12).getTime()) { console.log("entrou") return true } }) return date.getDay() === 0 || date.getDay() === 6 };
As at the time that it is called, diaFeriadoArray is empty so it does not entered in the forEach. Any tips?
The text was updated successfully, but these errors were encountered: