简体   繁体   中英

fullcalendar Can't disable resizing and enable draggable

I am using fullcalender and I am not able to disable resizing and enable draggable

My event is

[{
 "title":"Test2",
 "start":"2019-09-28T11:00:00",
 "end":"2019-09-28T13:00:00",
 "backgroundColor":"red",
 "textColor":"white",
 "constraint":"businessHours",
 "eventDurationEditable":false,
 "eventStartEditable":true
 }]

But not draggable, when I see on website If I change to:

editable: true,
eventDurationEditable:false

event draggable and resizible

You seem to be setting global options in an event context. When you set these options for each event then the option names are different (without the "event" prefix) - see https://fullcalendar.io/docs/event-parsing .

If you set them as whole-calendar options then your naming would be correct.

Therefore, in your event data use

"editable": true, 
"durationEditable": false

instead

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