admin管理员组文章数量:1287169
I put three views in my fullcalendar : month, agendaWeek and agendaDay. I need to activate drag & drop and forbidden events resizing. I use this following solution to do that on each render event :
$("#calendar").fullCalendar(
'renderEvent',
{
title: "event name",
editable: true,
disableResizing: true
},
true
);
It's only working in the month view, that is I can drag & drop and resize events in agendaWeek and agendaDay views. How can I remove resizing in this views ?
Thanks.
I put three views in my fullcalendar : month, agendaWeek and agendaDay. I need to activate drag & drop and forbidden events resizing. I use this following solution to do that on each render event :
$("#calendar").fullCalendar(
'renderEvent',
{
title: "event name",
editable: true,
disableResizing: true
},
true
);
It's only working in the month view, that is I can drag & drop and resize events in agendaWeek and agendaDay views. How can I remove resizing in this views ?
Thanks.
Share Improve this question asked Jul 15, 2013 at 9:48 user2428648user2428648 1175 silver badges14 bronze badges 1- 2 In newer version you can set it by eventDurationEditable: false – Novasol Commented Jun 6, 2018 at 9:41
4 Answers
Reset to default 4I try to use the calendar option durationEditable:false
but it did not work. The workaround was to use CSS and hide the resize element:
.fc-resizer.fc-end-resizer {
display: none;
}
place eventStartEditable: false
as shown here:
initialView: 'resourceTimeline',
slotMinWidth:1,
eventDurationEditable: false, // Disable Resize
eventStartEditable: false, // disable dreage drop
eventTimeFormat: {
hour: '2-digit',
minute: '2-digit',
hour12: true
},
Its Working, for More https://fullcalendar.io/docs/v1/disableResizing
disableResizing
is available only as a global setting in FullCalendar. So if you want to disable resizing of all events in the calendar, you simply set the setting when you initialize FullCalendar:
var $calendar = $('#calendar').fullCalendar({
[...]
disableResizing: true,
[...]
});
If you want to disable resizing of specific events, you could take a look at this pull request.
place editable:false
as shown here:
header:{
left:'prev,next today',
center:'title',
right: 'agendaWeek, list, rrule'//'month,agendaWeek,agendaDay'
},
editable:false, // place it under header. it worked for me
Works for Version 3
本文标签: javascriptFullcalendardisableResizing is only working on month viewStack Overflow
版权声明:本文标题:javascript - Fullcalendar : disableResizing is only working on month view - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741285168a2370229.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论