Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Modify show more for time grid
Browse files Browse the repository at this point in the history
  • Loading branch information
daiveeknaik14 committed Apr 4, 2024
1 parent 38f46eb commit 0c80fa6
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/TimeGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,19 @@ export default class TimeGrid extends Component {
})
}

handleShowMore = (events, date) => {
const { onDrillDown, getDrilldownView } = this.props
handleShowMore = (events, date, cell, slot) => {
const { onDrillDown, onShowMore, getDrilldownView, onDayMore, view } = this.props
//cancel any pending selections so only the event click goes through.
this.clearSelection();
this.clearSelection()

//Will this work
if (onDayMore) {
onDayMore(date, view);
return false;
}
notify(onDrillDown, [date, getDrilldownView(date) || views.DAY])

notify(onDrillDown, [date, getDrilldownView(date) || views.DAY]);
notify(onShowMore, [events, date, slot])
}

handleHeaderClick(date, view, e){
Expand Down

0 comments on commit 0c80fa6

Please sign in to comment.