如何顯示只有阿迪=真實事件在全日曆月視圖,其餘非全天事件在其他視圖僅顯示在月視圖阿迪事件的完整日曆
0
A
回答
2
USAL您可以通過檢查視圖做到這一點在類似eventRender的回調中使用.name。看看這個小提琴:http://jsfiddle.net/100thGear/vyKSZ/
希望這有助於!
0
$('#external-events div.external-event').each(function() {
// store data so the calendar knows to render an event upon drop
$(this).data('event', {
title: $.trim($(this).text()), // use the element's text as the event title
stick: true // maintain when user navigates (see docs on the renderEvent method)
});
// make the event draggable using jQuery UI
$(this).draggable({
zIndex: 1111999,
revert: true, // will cause the event to go back to its
revertDuration: 0 // original position after the drag
});
});
/* initialize the calendar
-----------------------------------------------------------------*/
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek'
},
editable: true,
droppable: true, // this allows things to be dropped onto the calendar
drop: function() {
// is the "remove after drop" checkbox checked?
if ($('#drop-remove').is(':checked')) {
// if so, remove the element from the "Draggable Events" list
$(this).remove();
}
},
eventDrop: function(event, delta, revertFunc) {
alert(event.id);
$.ajax({
type: "POST",
url: "${pageContext.request.contextPath}/task/periodic-task-update",
data : {
id : event.id ,
date :event.start.format()
},
success: function(data) {
if(data=='Task Period Succesfully Changed'){
toastr.success("Task Period Succesfully Changed.");
}else{
toastr.success("Something Wrong");
revertFunc();
}
},
error: function(data,textStatus,xhr) {
toastr.success("Something Wrong");
revertFunc();
}
});
},
events: [
<c:forEach var='periodicTask' items='${periodicTaskTemplates}'>
<c:forEach varStatus="i" begin = "1" end = "12">
{ id: '${periodicTask.id}', title: '${periodicTask.task}', start: new Date(y, '${i.index}', '${periodicTask.startDate}'), end: new Date(y, '${i.index}', '${periodicTask.lastDate}') ,type:'${periodicTask.description}',location:'${periodicTask.location.name}'},
</c:forEach>
</c:forEach>`
],
});
+0
這個函數實現jstl標籤庫 –
相關問題
- 1. 顯示月視圖中的事件總數(完整日曆)?
- 2. 完整日曆CSS - 在日曆畫布外部顯示事件
- 3. 完整的日曆不顯示任何谷歌日曆事件
- 4. 在月視圖中顯示日曆
- 5. 僅顯示事件的完整日曆的開始日期和結束日期
- 6. 顯示事件 - 總是阿迪
- 7. Android日曆視圖。月連續顯示
- 8. 完整日曆視圖中的單日事件
- 9. 如何查看完整日曆的月視圖或周視圖或日視圖
- 10. 顯示完整日曆
- 11. 如何顯示在完整日曆中指定的事件數
- 12. 在Django中的完整日曆顯示事件
- 13. 在完整的日曆中顯示4個月
- 14. 如何僅從事件日曆wordpress插件顯示當前月份的事件?
- 15. 如何在JQuery中僅顯示月份完整日曆標題/標題
- 16. jQuery完整日曆僅在幾個月和幾天內添加事件
- 17. FullCalendar - 在日曆上顯示完整事件標題
- 18. 完整日曆在事件標題顯示結尾附加'x'
- 19. 在完整日曆中顯示事件數組
- 20. 完整日曆 - 如何在完整日曆的月份視圖中爲日期添加前導零
- 21. 完整日曆和CakePHP 3.x無法在日曆上顯示事件
- 22. 完整日曆未顯示來自JSON源的事件
- 23. SyntaxError:missing;同時顯示完整日曆中的事件
- 24. 完整的日曆事件時序表現爲阿迪即使時間保存在數據庫中
- 25. jQuery完整日曆,所有事件顯示爲全天
- 26. 使用意圖在月視圖中顯示日曆
- 27. 允許eventOverlap僅用於完整日曆的後臺事件
- 28. 日曆控件在下個月顯示
- 29. 完整的日曆:如何顯示「忙碌的一天」的事件與事件,而不顯示每個事件?
- 30. 渲染JSON事件的完整日曆
這真的起作用 – Sadwik