mistougi
mistougi

Reputation: 23

fullcalendar - EventLimit for agendaWeek

I'm trying to implement an agendaView using fullcalendar api. what I want is: if there is more than 2 events for the same period (today 2pm-3pm = 4 events) it will show 2 events plus "+2 more".

so I used the following code:

eventLimit: true,
views: {
        agenda: {
            eventLimit: 2
        },
        week: {
            eventLimit: 2
        },
}

it works, but only for allDayEvents... not for events with an end date. what I'm getting is this when I want this

but I simply want to limit my events, does anyone knows why my code isn't working? thanks a million

Upvotes: 2

Views: 2323

Answers (1)

DanielST
DanielST

Reputation: 14163

As per the docs (emphasis mine):

For the all-day section in the agenda views, a value of true will limit the number of events to 5.

It doesn't support limiting the number of events on the agenda portion of the calendar.

It also isn't very clear how that would even work. It's one thing if all the events are at exactly the same time but how do you group events that look like:

Fullcalendar - lots of overlapping events

Upvotes: 2

Related Questions