diff --git a/src/Calendar.js b/src/Calendar.js index 884e8fa06..81b75f9d4 100644 --- a/src/Calendar.js +++ b/src/Calendar.js @@ -341,6 +341,14 @@ class Calendar extends React.Component { */ onShowMore: PropTypes.func, + /** + * Displays all events on the month view instead of + * having some hidden behind +{count} more. This will + * cause the rows in the month view to be scrollable if + * the number of events exceed the height of the row. + */ + showAllEvents: PropTypes.bool, + /** * The selected event, if any. */ diff --git a/src/DateContentRow.js b/src/DateContentRow.js index b90e4190a..d00333086 100644 --- a/src/DateContentRow.js +++ b/src/DateContentRow.js @@ -9,6 +9,8 @@ import * as dates from './utils/dates' import BackgroundCells from './BackgroundCells' import EventRow from './EventRow' import EventEndingRow from './EventEndingRow' +import NoopWrapper from './NoopWrapper' +import ScrollableWeekWrapper from './ScrollableWeekWrapper' import * as DateSlotMetrics from './utils/DateSlotMetrics' class DateContentRow extends React.Component { @@ -71,10 +73,15 @@ class DateContentRow extends React.Component { } renderDummy = () => { - let { className, range, renderHeader } = this.props + let { className, range, renderHeader, showAllEvents } = this.props return (