我在 fullcalendar 中启动了 YearView(源自基本的MonthView",需要显示更长的事件,例如学校假期),如果有人已经熟悉事件在视图上的显示方式,我可以使用手.
在
以 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.
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插件中的年视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
用于创建头像的 jQuery/JavaScript 库?jQuery/JavaScript Library for avatar creation?(用于创建头像的 jQuery/JavaScript 库?)
如何做以下掩码输入问题?How to do following mask input problem?(如何做以下掩码输入问题?)
使用 DropKick Javascript 设置值/标签的问题Issues Setting Value/Label Using DropKick Javascript(使用 DropKick Javascript 设置值/标签的问题)
如何对 jquery 插件中的私有方法进行单元测试?how to unit-test private methods in jquery plugins?(如何对 jquery 插件中的私有方法进行单元测试?)
stellar.js - 为垂直滚动网站配置偏移量/对齐元素stellar.js - configuring offsets / aligning elements for a vertical scrolling website?(stellar.js - 为垂直滚动网站配置偏移量/对齐元素?)
jQuery 屏蔽输入插件.当文本框获得焦点时选择所有jQuery masked input plugin. select all content when textbox receives focus(jQuery 屏蔽输入插件.当文本框获得焦点时选择所有内容)