fullcalendar - 多用户视图 [英] fullcalendar - Multiple user view

查看:104
本文介绍了fullcalendar - 多用户视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在fullcalendar组的单个页面中按用户名显示多个用户事件?

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

推荐答案

它不是内置的,但我正在使用eventAfterRender方法根据Feed生成器中设置的索引值修改事件的宽度和左侧位置。

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.

例如:来自user1的事件的基本左偏移量为0px,user2 200px,user3 300px等,并且事件的宽度基于整体宽度除以用户数量。处理重叠的事件等是一件很痛苦的事情,但最终结果很好。

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.

这篇关于fullcalendar - 多用户视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆