Fullcalendar doesn't scoll to Current Date in timelineWeek view

主宰稳场 提交于 2020-01-06 07:15:20

问题


I have purchased the Fullcalendar license.But i'm facing issue as it doesn't scroll automatically to current date in timelineWeek,timelineMonth view.I have attached below the code snipet which I have tried.

if $('#eventcalendarsub').length > 0
		$('#eventcalendarsub,#eventcalendarsubbig').fullCalendar
			scrollTime: moment().subtract(3, 'h')
			disableDragging:true
			nowIndicator:true
			editable: false
			height: 390
			header:
				left: 'today prev,next'
				center: 'title'
				right: 'timelineDay,timelineWeek,timelineMonth'
			defaultView: 'timelineDay'
			resourceLabelText: 'ABC/XYZ'
			resources:
				url: '/ABC.json'
				error: ->
					alert 'There was an error while fetching events!'
					return
			events:
				url: '/XYZ.json'
				error: ->
					alert 'There was an error while fetching resources!'
					return

so please help us to achieve this functionality.

来源:https://stackoverflow.com/questions/46558125/fullcalendar-doesnt-scoll-to-current-date-in-timelineweek-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!