Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fullcalendar - Multiple user view [closed]

Tags:

fullcalendar

How to display multiple user events in a single page in fullcalendar group by user name?

like image 676
sweetie Avatar asked Nov 25 '25 16:11

sweetie


2 Answers

It's not built in, but I'm doing it using the eventAfterRender method to modify the width and left position of the events based on an index value that is set in the feed generator.

For example: Events from user1 have a base left offset of 0px, user2 200px, user3 300px, etc and the width of the events is based on the overall width divided by the number of users. Handling overlapping events, etc was a bit of a pain, but worked out nicely in the end.

like image 132
SomethingOn Avatar answered Nov 28 '25 15:11

SomethingOn


I believe what sweetie is asking for is multi-user displays on the same calendar.

Jquery-week-calendar has this feature. http://themouette.github.com/jquery-week-calendar/weekcalendar_demo_3.html Its pretty nice.

I hope FullCalendar adds this at some point. In the meantime, this would have to be implemented through quite a bit of customization of the event layout routine. You'd have to assign a different css class per user and then override the layout system to display events occurring at the same time side-by-side rather than overlapping them.

like image 37
gidmanma Avatar answered Nov 28 '25 15:11

gidmanma