谁能告诉我如何停止拖动/调整event.id > 100
中的事件大小?只有这些事件应该是不可拖动的。
使用代码示例更新:
eventRender: function(event, element) {
if (event.id > 100) {
event.disableDragging();
event.disableResizing();
}
element.qtip({
content: GetEventToolTip(event),
position: { corner: { tooltip: 'bottomLeft', target: 'topMiddle'} },
style: {
border: {
width: 1,
radius: 5
},
padding: 5,
textAlign: 'left',
tip: false,
name: event.iscustom == 'True' ? 'cream' : 'dark'
}
});
}
谢谢。
发布于 2011-09-06 21:47:32
在创建全日历时使用这些标签来禁止拖动或调整大小。arshaw文档并不是很有说服力,但这就是如何解释它们。
$('#calendar').fullCalendar({
disableResizing:true,
disableDragging:true,
//the rest of your code...
disableDragging:布尔值,默认值:false
禁用所有事件拖动,即使事件是可编辑的。
disableResizing:布尔值,默认值:false
禁用所有事件的大小调整,即使事件是可编辑的。
https://stackoverflow.com/questions/4001377
复制相似问题