vkurko / calendar

Full-sized drag & drop JavaScript event calendar with resource & timeline views
https://vkurko.github.io/calendar/
MIT License
1.23k stars 108 forks source link

Editable ability can not be disabled? #113

Closed dimakovalevskyi closed 1 year ago

dimakovalevskyi commented 1 year ago

I create simple calendar instance, I want only viewing events, not editing.

editable: false option does nothing. My event on calendar still can be dragged between days and resized.

Should this option disable this abilities? Or how can i make read-only mode for calendar. Thanks!

Here is simple example. https://codepen.io/dimakovalevskyi/pen/ZEqKRjd

vkurko commented 1 year ago

In fact, the editable option has a default value of false. There are 2 other options that have a higher priority if enabled, they are eventStartEditable and eventDurationEditable. Both are true by default. So you need to disable them.

dimakovalevskyi commented 1 year ago

Really it works! Thank you a lot!