Releases: wojtekmaj/react-calendar
Releases · wojtekmaj/react-calendar
v2.9.0
v2.8.0
What's new
- New callback functions -
onActiveDateChange
,onDrillUp
andonDrillDown
. All of them return an object withactiveStartDate
andview
(#18). - Optimized performance by using PureComponents.
Bug fixes
v2.7.1
v2.7.0
v2.6.0
v2.5.0
What's new?
- You can now pass
activeStartDate
as a prop toCalendar
, just like you could toMonthView
,YearView
etc. before. It will be used to determine a view to display when no value is given. When not provided, React-Calendar will display today's date by default like before (#13).
Bug fixes
- Fixed an invalid React prop type warning when
tileClassName
provided was a function.
v2.4.0
What's new?
- More control over what's displayed in calendar tiles. Use
tileContent
to provide custom content to the tiles - statically or dynamically. UsetileClassName
to apply custom class name to the tiles, also statically or dynamically. See README.md for more details (#9).
What's changed?
renderChildren
was replaced with much more powerfultileContent
. IntileContent
, you're no longer limited to passing content by using a function, you can also use a React element or a string.renderChildren
will automatically be mapped totileContent
til the next major version.
v2.3.1
What's new?
- Dates in
<time>
'sdatetime
attribute are now local (ISO 8601 compilant) dates, while previously we were using UTC. This makes the dates much more understandable.- For example, a tile with the first day of January 2017 is now marked as
2017-01-01T00:00:00.000
while previously it could be2016-12-31T23:00:00.000Z
if you were in UTC+1 timezone.
- For example, a tile with the first day of January 2017 is now marked as