如何在全日历中制作可忽略的事件?

how to make a dismissible event in fullcalendar?

是否有可能在 fullcalendar 中具有与 bootstrap 删除事件的可关闭警报相同的行为?

我希望在以下示例中具有与 Bootstrap 警报相同的行为: https://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_alerts_fade&stacked=h

element.find('div.fc-title').append("<span id='eventTimes'><i class='fas fa-times'/></span>");
                    element.find("#eventTimes").click(function () {
                        deleteBookingById(event._id);
                        $('.tooltip').remove();
                    });

函数 deleteBookingById(id) {

            if (confirm('Do you want to remove this booking?')) {
                // ToDo: C# delete part
                $('#calendar').fullCalendar('removeEvents', id);
                setNormalBehavior();
            }

    }