简体   繁体   中英

FullCalendar specific event to stop dragging

I have some events which doesn't need to be dragged around only be fixed on the position and some would be draggable.

       var calendar = new Calendar(calendarEl, {
                plugins: ['interaction', 'dayGrid', 'timeGrid', 'list'],
                header: {
                    left: 'prev,next today',
                    center: 'title',
                    right: "dayGridMonth,timeGridWeek,timeGridDay"
                    //right: "dayGridMonth"
                },
                businessHours: true, // display business hours
                editable:false, //switching within calendar would stop                
                events: AllEvents,
                droppable: false, // this allows things to be dropped onto the calendar
      })

If i set editable:false it stops dragging all the events but i want only specific events to be stopped dragging. How can i do that .. ?

Found the solution to my problem.

{
    title: 'This must be editable',
    start: new Date('11/1/2011'),
    editable:true //true or false can set draggable in it
}

Here is the Url for the solution.
Jquery FullCalendar change editable properties of particular event on a calendar

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM