我有:
axisFormat:'h(:mm)tt',
slotMinutes:45,
在左侧,我的时间显示:
上午12点 [空白] [空白] [空白] [空白] 上午03时
或者如果slotMinutes保留默认值,它将显示: 上午12点 [空白] - 但这真的是12:30 凌晨1点 等等。
有什么方法可以显示空白时间吗?所以: 上午12点 12:45
或 上午12点 12:30 凌晨1点 1:30等?
修改
道歉,在此之前发布了这个。基本上,它的FullCalendar来自: the fullcalendar doc site我到目前为止的代码是:
<script type='text/javascript'>
$(document).ready(function() {
$('#calendar').fullCalendar({
defaultView: 'agendaWeek',
selectable: true,
selectHelper: true,
firstDay:1,
allDaySlot:false,// this decides if the all day slot should be showed at the top
axisFormat: 'h(:mm)tt',
slotMinutes: 45,
defaultEventMinutes:45,
select: function(start, end, allDay) {
var title = prompt('Event Title:');
if (title) {
calendar.fullCalendar('renderEvent',
{
title: title,
start: start,
end: end,
allDay: allDay
},
true // make the event "stick"
);
}
calendar.fullCalendar('unselect');
},
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
editable: true,
theme: true,
events: "json-events.php",
eventClick: function(event,delta) {
alert(event.id + event.title + ' was moved ' + delta + ' days\n' +
'(should probably update your database)');
if (event.url) {
$.fancybox({
'transitionIn': 'none',
'transitionOut': 'none',
'type': 'ajax',
'href': event.url
}); }},
eventDrop: function(event, delta) {
alert(event.id + event.title + ' was moved ' + delta + ' days\n' +
'(should probably update your database)');
},
removeEvent: function(event, delta) {
$('#calendar').fullCalendar('removeEvents', id);
},
updateEvent: function(event, delta) {
var event = $('#calendar').fullCalendar('clientEvents', id);
event.title = title;
$('#calendar').fullCalendar('updateEvent', event);
},
loading: function(bool) {
if (bool) $('#loading').show();
else $('#loading').hide();
}
});
});
基本上,它看起来像是:http://arshaw.com/js/fullcalendar-1.5.1/demos/selectable.html
如果您再点击周(右上角)。看看它如何列为早上6点,空白,早上7点,空白。我试图不做空白,所以早上6点,早上6:30,早上7点等。
编辑2 ..做了一些调试,控制左边时间的字段是slotMinutes,有些值有效,有些失败:
slotMinutes: 5 WORKS
slotMinutes: 10 WORKS
slotMinutes: 15 FAILS
slotMinutes: 20 WORKS
slotMinutes: 25 WORKS
slotMinutes: 30 FAILS
slotMinutes: 35 WORKS
slotMinutes: 40 WORKS
slotMinutes: 45 FAILS
slotMinutes: 50 WORKS
slotMinutes: 55 WORKS
slotMinutes: 60 WORKS
任何想法??
由于
由于