Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何设置fullcalendar(v5)事件的属性?_Javascript_Jquery_Fullcalendar_Fullcalendar 5 - Fatal编程技术网

Javascript 如何设置fullcalendar(v5)事件的属性?

Javascript 如何设置fullcalendar(v5)事件的属性?,javascript,jquery,fullcalendar,fullcalendar-5,Javascript,Jquery,Fullcalendar,Fullcalendar 5,在FullCalendar v5中,已删除回调 我决定使用中的eventDidMount,但不知道如何正确设置属性 var calendarEl=document.getElementById('calendar'); var calendar=新的完整日历。日历(calendarEl{ 事件单击:函数(信息){ $('.popover事件'+info.event.id).popover('show') }, eventResize:函数(信息){ 控制台日志(信息); }, //这里 even

在FullCalendar v5中,已删除回调

我决定使用中的
eventDidMount
,但不知道如何正确设置属性

var calendarEl=document.getElementById('calendar');
var calendar=新的完整日历。日历(calendarEl{
事件单击:函数(信息){
$('.popover事件'+info.event.id).popover('show')
},
eventResize:函数(信息){
控制台日志(信息);
},
//这里
eventDidMount:函数(事件){
//element.attr('title',event.tip);
console.log('atr',event.el.attributes)
},
时区:“UTC”,
slotEventOverlap:错误,
eventColor:“#c1c1”,
可编辑:false,//editableni ko'rish kerak
SchedulerLisceKey:“GPL我的项目是开源的”,
initialView:'resourceTimeGridTwoDay1',
是的,
//现在:矩().format(),
initialDate:moment()格式('YYYY-MM-DD'),
全天时段:错,
slotMinTime:'08:00:00',
slotMaxTime:'18:00:00',
是的,
地区:'ru',
headerToolbar:错误,
})

我搜索了一下,找到了答案

eventDidMount:函数(事件){
$(event.el).attr('data-trigger','focus')
$(event.el).attr('tabindex',0)
}