Fullcalendar doesn't scoll to Current Date in

2019-08-18 04:12发布

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.

0条回答
登录 后发表回答