Reputation:
Is it possible to put a restriction on some events on fullcalendar, which can't be draggable or resizable?
I mean some events can be draggable and some can't be draggable.
Upvotes: 2
Views: 158
Reputation: 31508
The editable
property on the Event
object is probably what you're after, cf. the docs.
editable
true
orfalse
. Optional. Overrides the master editable option for this single event.
Example:
$('#calendar').fullCalendar({
events: [
{
title : 'draggable/resizable',
start : '2010-01-01'
},
{
title : 'locked',
start : '2010-01-05',
end : '2010-01-07',
editable: false
}
]
});
Also worth noting is the possibility to revert drag / resize events retrospectively via the revertFunc
on eventResize
and eventDrop
.
Upvotes: 1