FullCalendar限制事件数量并具有更多链接

Pro*_*Neo 4 jquery fullcalendar

我已经看到有人要求在日历中添加MORE链接并限制事件数量.这样做了吗?或者有没有人实施自己的工作,他们可以共享?如果是这样,请发布您的代码.

Mic*_*res 7

随着新版本v2.1.0-beta2发布17天前Arshaw做了以下事情

已解决的问题:

  • 带有"更多..."链接的最大事件(304)
  • 拖动/调整大小时不要触发eventMouseover/eventMouseout(1297)

新选择:

  • eventLimit
  • eventLimitClick
  • eventLimitText
  • dayPopoverFormat

资源

因此,您可以执行以下操作:

$('#calendar').fullCalendar({
    lang: 'en',
    eventLimit: true, // If you set a number it will hide the itens
    eventLimitText: "Something" // Default is `more` (or "more" in the lang you pick in the option)
});
Run Code Online (Sandbox Code Playgroud)


Sco*_*eld 6

最近写了一个插件,它完全符合你的要求.希望fullcalendar的开发人员Adam Shaw将链接到它或将此增强插件包含在fullcalendar核心中.

看看它,让我知道你的想法.请报告任何错误. https://github.com/lyconic/fullcalendar.viewmore

谢谢