Fullcalendar jquery插件中的年视图

Year View in Fullcalendar jquery plugin(Fullcalendar jquery插件中的年视图)
本文介绍了Fullcalendar jquery插件中的年视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我在 fullcalendar 中启动了 YearView(源自基本的MonthView",需要显示更长的事件,例如学校假期),如果有人已经熟悉事件在视图上的显示方式,我可以使用手.

  1. 使用BasicEventRenderer",如何为DayEventRenderer"填充segmentContainer"?
  2. 我什么时候初始化默认启动&划定活动年份的结束日期 ?(开始月份可以更改,能在当月和当日保持高亮就好了).

以 JSON 格式加载事件:http://arshaw.com/fullcalendar/docs/event_data/events_json_feed/

渲染事件:http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent//

渲染事件示例:

fc.fullCalendar('renderEvent', {'id': 1,'title': '测试事件 1','开始': '2009-11-05T13:15:30Z',结束":2009-11-05T13:30:00Z"});

限制显示可用月份:Fullcalendar 限制显示可用月份?

I started a YearView in fullcalendar (derived from the basic 'MonthView', needed to display longer events such as school holidays), and I could use a hand if anyone is already familiar with the way events get displayed on a view.

  1. Using the 'BasicEventRenderer', how do I populate the 'segmentContainer' for 'DayEventRenderer' ?
  2. And when do I initialize the default start & end date for delimiting the active year ? (the starting month could be changed, and it'd be nice to be able to keep the highlight on the current month and the current day).

See my github fork at https://github.com/Paulmicha/fullcalendar

-> example file is https://github.com/Paulmicha/fullcalendar/blob/master/tests/year-view-test-01.html


解决方案

FullCalendar Documentation: http://arshaw.com/fullcalendar/docs/

Loading events as JSON: http://arshaw.com/fullcalendar/docs/event_data/events_json_feed/

Render event: http://arshaw.com/fullcalendar/docs/event_rendering/renderEvent/

Render event example:

fc.fullCalendar('renderEvent', {
    'id': 1,
    'title': 'Test Event 1',
    'start': '2009-11-05T13:15:30Z',
    'end': '2009-11-05T13:30:00Z'
});

Limit the display of available months: Fullcalendar limit the display of available months?

这篇关于Fullcalendar jquery插件中的年视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Google apps script get range of bytes from binary file(谷歌应用程序脚本从二进制文件中获取字节范围)
Sending Multiple attachments with Google Script from Google Drive(使用 Google 脚本从 Google Drive 发送多个附件)
Distributing Google Apps Scripts for Sheets in your company network(在您的公司网络中分发适用于表格的 Google Apps 脚本)
Upload file to my google drive from anyone using javascript(使用 javascript 将文件从任何人上传到我的谷歌驱动器)
quot;Shared Drivequot; support in Google Apps Script(“共享驱动器Google Apps 脚本中的支持)
Angular 2+ HTTP POST and GDrive API. Resumable file upload with name(Angular 2+ HTTP POST 和 GDrive API.带名称的可恢复文件上传)