Skip to content

Commit

Permalink
fix: allow override onShowMore callback (jquense#1214)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yadro authored and jquense committed Feb 14, 2019
1 parent 4768188 commit 8fefeee
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,15 @@ class Calendar extends React.Component {
*/
onSelecting: PropTypes.func,

/**
* Callback fired when a +{count} more is clicked
*
* ```js
* (events: Object, date: Date) => any
* ```
*/
onShowMore: PropTypes.func,

/**
* The selected event, if any.
*/
Expand Down Expand Up @@ -847,6 +856,7 @@ class Calendar extends React.Component {
getNow,
length,
showMultiDayTimes,
onShowMore,
components: _0,
formats: _1,
messages: _2,
Expand Down Expand Up @@ -903,7 +913,7 @@ class Calendar extends React.Component {
onSelectEvent={this.handleSelectEvent}
onDoubleClickEvent={this.handleDoubleClickEvent}
onSelectSlot={this.handleSelectSlot}
onShowMore={this._showMore}
onShowMore={onShowMore}
/>
</div>
)
Expand Down

0 comments on commit 8fefeee

Please sign in to comment.