Javascript Fullcalendar Now()指示器定位错误
在Fullcalendar中,设置参数时 分钟 及 maxtime Now()指示器未正确定位 我有一个问题要说明。 在这把小提琴中,我预计指标在当前日期和时间,但它位于“昨天”栏的顶部 下面是小提琴中使用的代码 HTMLJavascript Fullcalendar Now()指示器定位错误,javascript,fullcalendar,Javascript,Fullcalendar,在Fullcalendar中,设置参数时 分钟 及 maxtime Now()指示器未正确定位 我有一个问题要说明。 在这把小提琴中,我预计指标在当前日期和时间,但它位于“昨天”栏的顶部 下面是小提琴中使用的代码 HTML <div id="calendar"></div> 移除 分钟 及 maxTime 参数,使现在的指示器位置正确,如下所示 使用minTime和maxTime时,如何正确定位Now指示器? 还是这是一个bug?我发现了多个问题: 现在指示器不需要引
<div id="calendar"></div>
移除
分钟
及
maxTime
参数,使现在的指示器位置正确,如下所示
使用minTime和maxTime时,如何正确定位Now指示器?
还是这是一个bug?我发现了多个问题:
'true'
更改为true
1.
,以设置第二天的时间。因此,第二天早上8点将是maxtime:“1.08:00:00”
这个问题看起来像是你设置了第二天的maxTime,这就是为什么它不工作的原因 如果要指定日期来设置最大值,请使用validRange来设置最小和最大日期
$('#calendar').fullCalendar({
defaultView: 'agendaWeek', //agendaWeek
validRange: {
start: '2017-05-01',
end: '2017-06-01'
},
locale: 'nl',
timezone: 'local',
themeSystem: 'bootstrap3',
height: 600,
slotDuration: '00:10:00',
nowIndicator: 'true',
minTime: "17:00:00", // this makes the calendar start at 8PM
maxTime: "20:00:00", // this makes the calender end 24 hours later at 8PM ( (8PM => 20) + 24 = 44)
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
editable: true, // enable draggable events
droppable: true, // this allows things to be dropped onto the calendar
})
好的,谢谢你的提示(1和2)。显然,这是Fullcalendar的一个问题,它不知道如何在今天的开始时间尚未到达时显示Now()指示器。@JoostvanderDrift您的确切意思是什么?在这种情况下,您预计now指示器会发生什么情况?如果该时间不在日历上,它无法指示现在的时间。我的视图从昨天晚上8点运行到今天晚上8点。今天上午9点,now指示器显示在视图的顶部(昨天晚上8点也是如此),而上午9点显示在视图中。尽管它没有解决我的问题,@dwarka tiwari解释了为什么它能如此工作
$('#calendar').fullCalendar({
defaultView: 'agendaWeek', //agendaWeek
validRange: {
start: '2017-05-01',
end: '2017-06-01'
},
locale: 'nl',
timezone: 'local',
themeSystem: 'bootstrap3',
height: 600,
slotDuration: '00:10:00',
nowIndicator: 'true',
minTime: "17:00:00", // this makes the calendar start at 8PM
maxTime: "20:00:00", // this makes the calender end 24 hours later at 8PM ( (8PM => 20) + 24 = 44)
schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives',
editable: true, // enable draggable events
droppable: true, // this allows things to be dropped onto the calendar
})