如何在fullcallendar v5基本版本中将当前视图传递给事件ajax调用
我需要在任何 ajax 调用中以及每次日历网格更改时将当前视图传递给 ajax 调用
events: {
url: "{{route('clientSessionData')}}",
extraParams: {
current_view_type: vm.type, // in here I want to pass current view now I stored it in vue element
},
// our hypothetical feed requires UNIX timestamps
data: {
},
error: function() {
$('#script-warning').show();
},
success: function(){
console.log("successful: You can now do your stuff here. You dont need ajax. Full Calendar will do the ajax call OK? ");
// calendar.render();
},
color: 'yellow', // a non-ajax option
textColor: '#ffffff', // a non-ajax option,
},
I need to pass current view to ajax call in any ajax call and every time calendar grid changed
events: {
url: "{{route('clientSessionData')}}",
extraParams: {
current_view_type: vm.type, // in here I want to pass current view now I stored it in vue element
},
// our hypothetical feed requires UNIX timestamps
data: {
},
error: function() {
$('#script-warning').show();
},
success: function(){
console.log("successful: You can now do your stuff here. You dont need ajax. Full Calendar will do the ajax call OK? ");
// calendar.render();
},
color: 'yellow', // a non-ajax option
textColor: '#ffffff', // a non-ajax option,
},
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以按如下方式获取 FullCalendar v5 视图
例如
timeGridWeek
这就是您想要的吗?
You can get the FullCalendar v5 View as follows
For example
timeGridWeek
is this what you are after?