streamlit-calendar icon indicating copy to clipboard operation
streamlit-calendar copied to clipboard

Disabling Drag-and-Drop in Streamlit-Calendar: Need Assistance with Event Modification Settings

Open Salan54 opened this issue 9 months ago • 1 comments

I would like the user to not be able to modify the position of the slots via drag-and-drop.

I thought it was enough to set the "editable" variable in "options" to "false" to disable drag-and-drop... but it is not the case. It is still possible to move events by drag-and-drop. I also removed "eventChange" from the callbacks passed when calling calendar. It is still possible to manually move the slots...

What else should I do to make the streamlit-calendar respond only to user clicks without it being possible to interactively modify the events?

Thank you again for your help and this excellent component.

Salan54 avatar May 13 '24 14:05 Salan54