[英]fullcalendar events are always coming in All day event slot and how to edit
This is how data is passed. 这就是数据传递的方式。
$items[] = array(
'title' => 'Meeting',
'start' => strtotime('2014-09-09'),
'color' => '#CC0000',
'allDay' => true,
'url' => 'http://anyurl.com'
);
$items[] = array(
'title' => 'Meeting reminder',
'start' => '2014-09-15 05:20:17',
'end' => '2014-09-15 05:30:17',
'color' => 'blue',
);
echo CJSON::encode($items);
Yii::app()->end();
And another issue i have is when enable true as below, it says 我还有另一个问题是,当启用true时,如下所示
'editable'=>'true',
'selectable' => true,
Property "EFullCalendar.editable" is not defined. 未定义属性“ EFullCalendar.editable”。 Property "EFullCalendar.selectable" is not defined. 未定义属性“ EFullCalendar.selectable”。
Here is how it should work exactly, http://fullcalendar.io/js/fullcalendar-2.1.1/demos/external-dragging.html 这是它应该如何正常工作的方法, http://fullcalendar.io/js/fullcalendar-2.1.1/demos/external-dragging.html
If all events are being displayed as All Day, make sure that you don't have allDayDefault
set to true
( take a look at the docs ). 如果所有事件都显示为“全天”,请确保您没有将allDayDefault
设置为true
( 请参阅docs )。
For your second issue, make sure editable
is true
(boolean instead of string). 对于第二个问题,请确保editable
为true
(布尔值而不是字符串)。 If it still doesn't work, please include the javascript where you set the default options for fullCalendar. 如果仍然无法使用,请在javascript中设置fullCalendar的默认选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.