jquense / react-big-calendar

gcal/outlook like calendar component
http://jquense.github.io/react-big-calendar/examples/index.html
MIT License
7.88k stars 2.23k forks source link

How to show all the event titles of a day in the allDay events row in week view? #2130

Open johnsus1995 opened 2 years ago

johnsus1995 commented 2 years ago

Do you want to request a feature or report a bug?

feature

What's the current behavior?

Only allDay events can be viewed to allDay events row in week view

What's the expected behavior?

List all the events of that day in the allDay events row in week view

Is there a way to customize the calendar the way described above? I just need to list all the events titles of that particular day on the allDay events row even if it's not an allDay event in the week view of the calendar. If I mark the event as allDay it goes to the allDay row and gets removed from the timeline.

mitsol commented 2 years ago

Take a look at my PR #2097 which is imo exactly what you need. Using this modification you can specify a function for the prop showMultiDayTimes for the <Calendar />

showMultiDayTimes={(event) => {
        // return false if the event should be shown as allday
    }
}