問題描述
我在 fullcalendar 中啟動了 YearView(源自基本的MonthView",需要顯示更長的事件,例如學校假期),如果有人已經熟悉事件在視圖上的顯示方式,我可以使用手.
- 使用BasicEventRenderer",如何為DayEventRenderer"填充segmentContainer"?
- 我什么時候初始化默認啟動&劃定活動年份的結束日期 ?(開始月份可以更改,能在當月和當日保持高亮就好了).
在
以 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.
- Using the 'BasicEventRenderer', how do I populate the 'segmentContainer' for 'DayEventRenderer' ?
- 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插件中的年視圖的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!