如何在FullCallendar JS中始终处于底部的活动
即使我重新加载页面,我如何设置“花费我的事件”以保持在下面。 我在Javasecript上使用FullCalendar,然后尝试了几种方法,例如EventRender,EventDidMount,但仍然没有结果。 我使用EventSource调用事件数据
function renderCalender(val){
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
eventSources: [
{
events: [
{
title: 'My Event',
start: '2022-05-31',
end: '2022-05-31',
},
{
title: 'My Event 1',
start: '2022-05-31',
end: '2022-06-02',
}
],
},
{
events: [
{
title: 'Cost My Event',
start: '2022-05-31',
end: '2022-05-31',
url: 'http://google.com/'
},
{
title: 'Cost My Event',
start: '2022-06-01',
end: '2022-06-02',
}
],
color: '#4caf50',
textColor: '#fff',
}
],
});
calendar.render();
}
how can i set the "cost my event" to stay below even though i reload the page.
i use fullcalendar on javasecript and i tried several ways like eventRender, eventDidMount, but still no result.
i use eventSource to call event data
function renderCalender(val){
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
eventSources: [
{
events: [
{
title: 'My Event',
start: '2022-05-31',
end: '2022-05-31',
},
{
title: 'My Event 1',
start: '2022-05-31',
end: '2022-06-02',
}
],
},
{
events: [
{
title: 'Cost My Event',
start: '2022-05-31',
end: '2022-05-31',
url: 'http://google.com/'
},
{
title: 'Cost My Event',
start: '2022-06-01',
end: '2022-06-02',
}
],
color: '#4caf50',
textColor: '#fff',
}
],
});
calendar.render();
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论