We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<Calendar week={{ taskView: false, eventView: ['time'], }} ref={calendarRef} view={viewType} events={initialEvents} isReadOnly usageStatistics={false} onClickEvent={onClickEvent} template={{ weekDayName: (model) => { const { dayName, date, isToday } = model; return `<div>${dayName}</div><div class=${isToday ? 'today' : 'date'}>${date}</div>`; }, timegridDisplayPrimaryTime: (date) => { const time = date.time.getTime(); return `<div class='display-time'>${moment(time).format('LT')}</div>`; }, }} />
I want to add class name when it's today but when I log isToday it's always true.
it should be true when it's only today
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current Behavior
I want to add class name when it's today but when I log isToday it's always true.
Expected Behavior
it should be true when it's only today
The text was updated successfully, but these errors were encountered: