簡體   English   中英

FullCalendar 特定事件停止拖動

[英]FullCalendar specific event to stop dragging

我有一些不需要拖動的事件,只需固定在位置上,而有些則可以拖動。

       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
      })

如果我設置editable:false它會停止拖動所有事件,但我只想停止拖動特定事件 我怎樣才能做到這一點 .. ?

找到了我的問題的解決方案。

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

這是解決方案的網址。
Jquery FullCalendar 更改日歷上特定事件的可編輯屬性

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM