Ror*_*ley 2 jquery fullcalendar
background-color当我点击该事件时,我正在尝试更改"事件"FullCalendar
我正在尝试以下 -
$(document).ready(function() {
$('#calendar').fullCalendar({
editable: true,
events: "json-events.php",
eventDrop: function(event, delta) {
alert(event.id);
},
loading: function(bool) {
if (bool) $('#loading').show();
else $('#loading').hide();
},
eventClick: function(event){
$(event.target).css('background-color','yellow');
}
});
});
Run Code Online (Sandbox Code Playgroud)
然而这没有任何作用.这可以做到,有人能指出我正确的方向吗?
谢谢
eventClick: function(event) {
event.backgroundColor = 'yellow';
$('#mycalendar').fullCalendar( 'rerenderEvents' );
},
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5551 次 |
| 最近记录: |