fullcalendar.js - deleting event on button click

后端 未结 5 1693
猫巷女王i
猫巷女王i 2021-02-02 15:36

I am using the fullCalendar.js and the current problem is making i lose so much time on something that might be simple to whose understand javascript (more specific jquery) bett

5条回答
  •  长情又很酷
    2021-02-02 16:05

    this will works for Month ,Week ,Day views

    eventRender: function (event, element, view) {
    
                if (view.name == 'listDay') {
                    element.find(".fc-list-item-time").append("X");
                } else {
                    element.find(".fc-content").prepend("X");
                }
                element.find(".closeon").on('click', function () {
                    $('#calendar').fullCalendar('removeEvents', event._id);
                });
    

提交回复
热议问题