Skip to content

v3.0.0

Compare
Choose a tag to compare
@acro5piano acro5piano released this 21 Jan 01:57

New Feataures

  • add support to style calendar cells based on cell date #610

Breaking changes ⚠️

  • Deleted deprecated interfaces. Instead, use ICalendarEventBase & T
    • ICalendarEvent<T>
    • DayJSConvertedEvent
    • Event
  • evenCellBg and oddCellBg is deleted in favor of calendarCellStyle function. To migrate:

Before

<Calendar theme={{ evenCellBg: '#aaa', oddCellBg: '#bbb' }} />

After

<Calendar
  calendarCellStyle={(date, index) => ({
    backgroundColor: index % 2 === 0 ? "#aaa" : "#bbb",
  })}
/>

Full Changelog: v2.9.1...v3.0.0