FullCalendar插件月視圖正常顯示周視圖不正常顯示問題解決方法

renderCalendarView : function(){
	    	var height =  $(window).height() -54-10;
	    	$("#pm-task-calendar-view").fullCalendar("destroy");
	    	$("#pm-task-calendar-view").fullCalendar({
	    		header: {
					left: 'prev,next today',
					center: 'title',
					right: 'month,agendaWeek'
				},
				height: height,
				lang: "zh-cn",
				buttonIcons: true,
				weekNumbers: false,
				allDaySlot: false,
				allDayDefault:false, //默認爲true改爲false
				editable: true,
				eventLimit: 6,
				nextDayThreshold: "09:00:00",
				/**
				eventLimit: {
			        'agenda': 5, // adjust to 6 only for agendaWeek/agendaDay
			        'default': true // give the default value to other views
			    },
			    **/
				eventClick: function(event){
					
				},
				dayClick : function(date,jsEvent,view) {
		           
				},
				eventDrop :function( event, delta, revertFunc, jsEvent, ui, view ){
					
				},
				eventResize: function( event, delta, revertFunc, jsEvent, ui, view )  {
					
				},
				events: function(start, end, timezone, callback) {
					
				}
	    	});
	    },

只須要將allDayDefault:true改爲false便可。javascript

相關文章
相關標籤/搜索