3
我正在使用fullcalendar
,這是一個利用jQuery的JavaScript事件日曆。DOM操作fullCalendar js
我需要編輯日曆的所有天細胞,添加兩個垂直列表,都向左浮動;我是否必須實現處理事件?
好吧;我想不是。
有沒有一種簡單而有效的方法來實現呢?
下面是我的代碼說明實現我的失敗嘗試:
$("#calendar").fullCalendar({
header: {
left: 'prev',
center: 'title',
right: 'next'
},
//defaultDate: '2015-02-12',
monthNames:
['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'],
dayNamesShort:
['D', 'L', 'M', 'M','J', 'V', 'S'],
editable: false,
eventLimit: true, // allow "more" link when too many events
eventRender: function(event, element) {
//element.find(".fc-view-month td").after($("<td class=\"fc-day\"></td>").html("Prueba"));
//element.find("div.fc-event-inner").prepend("<img src='" + event.imageurl +"' width='12' height='12'>");
//element.find("div.fc-event-inner").prepend("<img src='../img/ico_calen_min_1.png' width='12' height='12' />");
//element.find("table tbody td").prepend("<img src='../img/ico_calen_min_1.png' width='12' height='12' />");
//element.find(".fc-title").after($("<span class=\"fc-event-icons\"></span>").html("<ul><li><img src=\"../img/ico_calen_min_1.png\" /></li><li><img src=\"../img/ico_calen_min_1.png\" /></li></ul>"));
//element.find(".fc-view-month").after($("td").html("<ul><li><img src=\"../img/ico_calen_min_1.png\" /></li><li><img src=\"../img/ico_calen_min_1.png\" /></li></ul>"));
//$("#calendar .fc-view-month td").append("<input type=\"checkbox\">AM<br>");
}
});
如果我想,旁邊的圖標欄,同一列,像圖像重複,怎麼會?後可以把每個圖標中的鏈接?謝謝 – Eladerezador
你是什麼意思,「如果我想,重複旁邊的圖標列,同一列」是不是事件內容? –
在圖像中,我有一個帶有圖標的列,其次是帶有數字的其他列。怎麼做到的?在這一刻,我不需要事件,但在將來,如果我需要圖標中的鏈接,我必須使用事件? – Eladerezador