如何在轴上显示每个分钟的所有文本,而不是仅仅是早上6点,早上7点等

我有:

axisFormat:’h(:mm)tt’,

slotMinutes:45,

而在左侧,我的时间显示:

12am [空白] [空白] [空白] [空白]凌晨3点

或者如果slotMinutes保留了默认值,它将显示:12am [blank] – 但这实际上是12:30凌晨1点,依此类推。

有什么方法可以显示空白时间吗? 所以:上午12点12分45秒

或12am 12:30 1am 1:30等?

编辑

道歉,在此之前发布了这个。 基本上,它的FullCalendar来自: fullcalendar doc网站

我到目前为止的代码是:

 $(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 

有任何想法吗??

谢谢

谢谢