Fullcalendar-在listview上删除事件
我正在使用我的完整日历上的“listMonth”视图。当我将外部事件放在正常议程上时,会触发事件“drop”和“eventReceive”,但当我将事件放在listview上时,不会触发这些事件。有没有办法做到这一点?在获取有用数据方面,堆可能没有帮助,但如果您正在寻找一种方法来检测某个项目是否已在日历上删除,则可以使用jQuery droppable stop函数Fullcalendar-在listview上删除事件,listview,events,fullcalendar,droppable,Listview,Events,Fullcalendar,Droppable,我正在使用我的完整日历上的“listMonth”视图。当我将外部事件放在正常议程上时,会触发事件“drop”和“eventReceive”,但当我将事件放在listview上时,不会触发这些事件。有没有办法做到这一点?在获取有用数据方面,堆可能没有帮助,但如果您正在寻找一种方法来检测某个项目是否已在日历上删除,则可以使用jQuery droppable stop函数 $(".item").draggable({ //other details stop:function(even
$(".item").draggable({
//other details
stop:function(event, ui){
//get a reference to the calendar
var calendar = $("#calendar");
//get bounds
var bounds = [
left:calendar.offset().left,
top:calendar.offset().top,
width:calendar.width(),
height:calendar.height()
];
//get coordinates
var x = event.pageX;
var y = event.pageY;
//check if in bounds
if (
x >= bounds.left &&
x <= bounds.left + bounds.width &&
y >= bounds.top &&
y <= bounds.top + bounds.height
){
//item has been dropped within
}
}
});
$(“.item”).draggable({
//其他详情
停止:功能(事件、用户界面){
//获取日历的引用
var日历=$(“#日历”);
//获得边界
变量界限=[
左:calendar.offset().left,
顶部:calendar.offset().top,
宽度:calendar.width(),
高度:calendar.height()
];
//获取坐标
var x=event.pageX;
var y=event.pageY;
//检查是否在边界内
如果(
x>=bounds.left&&
x=bounds.top&&
y在获取有用数据方面,堆可能没有帮助,但是如果您正在寻找一种方法来检测某个项目已被丢弃在日历上,那么可以使用jQuery droppable stop函数
$(".item").draggable({
//other details
stop:function(event, ui){
//get a reference to the calendar
var calendar = $("#calendar");
//get bounds
var bounds = [
left:calendar.offset().left,
top:calendar.offset().top,
width:calendar.width(),
height:calendar.height()
];
//get coordinates
var x = event.pageX;
var y = event.pageY;
//check if in bounds
if (
x >= bounds.left &&
x <= bounds.left + bounds.width &&
y >= bounds.top &&
y <= bounds.top + bounds.height
){
//item has been dropped within
}
}
});
$(“.item”).draggable({
//其他详情
停止:功能(事件、用户界面){
//获取日历的引用
var日历=$(“#日历”);
//获得边界
变量界限=[
左:calendar.offset().left,
顶部:calendar.offset().top,
宽度:calendar.width(),
高度:calendar.height()
];
//获取坐标
var x=event.pageX;
var y=event.pageY;
//检查是否在边界内
如果(
x>=bounds.left&&
x=bounds.top&&
y不,因为它只是一个事件列表,而不是网格。事件之间没有可以拖动任何内容的空白。请使用议程或基本视图。这样想,感谢您的快速响应。不,因为它只是一个事件列表,而不是网格。事件之间没有可以拖动任何内容的空白。请使用议程或基本视图sic的意见。这样想,谢谢你的快速反应。无论如何,谢谢你的信息!无论如何,谢谢你的信息!