Fullcalendar,每天限制数量事件的所需文件与查看更多/更多按钮? [英] Fullcalendar, required files for limit number events per day with view more/ more button?

查看:4736
本文介绍了Fullcalendar,每天限制数量事件的所需文件与查看更多/更多按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作在fullcalendar视图功能。我使用的是

I am working in fullcalendar view functionlity. I am using ,

fullcalendar.css

fullcalendar.min .js。

我的代码是

  $('#calendar').fullCalendar({
      header: {
      left: 'prev,next',
      center: 'title',
      right: 'month,basicWeek,basicDay'
      },
      editable: true,           
      events:curEvents
  });

工作正常。但是,如果我传递更多的数据到'curevents'意味着,月视图的高度变得很长。因此,我希望使用viewmore / more选项/链接添加限制事件概念,以便在我点击viewmore选项时通过弹出框它将重定向到日视图。
所以我尝试了一些代码,

Its working fine. But, if I pass more data into 'curevents' means, month view height goes to very long. So I like to add 'limit events' concept with 'viewmore/more' option/link to display data via popup box (or) when I click the 'viewmore' option it will redirect to day view. So I tried some code,

$('#calendar').limitEvents(4);

从以下链接的帮助link =>

from help of below link =>

fullcalendar,how以限制月视图中每天的事件数量

但是月视图的高度只有aligned.View更多按钮尚未显示。我想要,用于处理此视图的文件的名称更多按钮功能。
如果你给出深层代码解释手段,它对我更有帮助。
查看更多按钮尚未显示,以下代码不限制事件。

But height of the month view only aligned.View more button not yet displayed.So I want, name of the files for working this view more button functionality. If you give deep code explanation means, its more helpful for me. View more button not yet show and below code not limit the events also.

$('#calendar').limitEvents(4);


推荐答案

请尝试以下操作。

使用新版本v2.1.0-beta2 Launch 17天前 Arshaw 执行了以下操作

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


已解决的问题:

RESOLVED ISSUES:


  • 最多与更多...连结的活动(304)

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

新选项:


  • eventLimit

  • eventLimitClick

  • eventLimitText

  • dayPopoverFormat

  • eventLimit
  • eventLimitClick
  • eventLimitText
  • dayPopoverFormat

来源

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

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天全站免登陆