fullcalendar.js - deleting event on button click

后端 未结 5 1765
猫巷女王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:16

    Remove the eventClick function and replace the eventAfterAllRender function with this:

            eventRender: function(event, element) {
                element.append( "X" );
                element.find(".closeon").click(function() {
                   $('#calendar').fullCalendar('removeEvents',event._id);
                });
            }
    

提交回复
热议问题