FullCalendar限制事件数量,并有更多链接 [英] FullCalendar limit number of events and have a MORE link

查看:734
本文介绍了FullCalendar限制事件数量,并有更多链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到有人要求在日历中添加更多链接,并限制事件数量。这完成了吗?或者是否有人实施了自己的解决方案,他们可以分享?如果是这样,请发布您的代码。

使用新版本v2.1.0-beta2推出17天前 Arshaw 完成以下操作:


已解决的问题:


  • 最多带有more ...链接的事件(304)

  • 不要在拖动/调整大小时触发eventMouseover / eventMouseout(1297) / ul>

    新选项:




    • eventLimit

    • eventLimitClick

    • eventLimitText

    • dayPopoverFormat

来源



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

  $('#calendar')。 fullCalendar({
lang:'en',
eventLimit:true,//如果设置了一个数字,它将隐藏它
eventLimitText:Something//默认为`more` (或在选项中选择的更多)
});


I have seen that there has been a request to add a MORE link, to the calendar and limit the number of events. Is this done yet? Or has anyone implemented there own work around, that they can share? If so please post your code.

解决方案

With the new build v2.1.0-beta2 Launch 17 days ago Arshaw did the following

RESOLVED ISSUES:

  • Max events with "more..." link (304)
  • Don't fire eventMouseover/eventMouseout while dragging/resizing (1297)

NEW OPTIONS:

  • eventLimit
  • eventLimitClick
  • eventLimitText
  • dayPopoverFormat

Source

So, you can do the following:

$('#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)
});

这篇关于FullCalendar限制事件数量,并有更多链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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