im-perativa / streamlit-calendar

A Streamlit component to show calendar view using FullCalendar
https://calendar-component.streamlit.app/
Apache License 2.0
119 stars 12 forks source link

Add event to a Timeline #32

Open gaspardc-met opened 5 months ago

gaspardc-met commented 5 months ago

Hey @im-perativa, thanks for the very clean component ! I really enjoyed the demo you deployed with all the different modes.

However, one thing is puzzling me, and I can't find it either in FullCalender.io: how can I add an event from the calendar view, with either (i) a streamlit button to add an event or (ii) automatic event creation for one of the callbacks (for example with dateClick)

It seems this would be a common enough use case but I can't find anything about it 🤔 With resource-timeline for example, I could create a streamlit button to add an event on the Calendar to be placed on the right Room/Building, but the callback for eventChange does not contain the new (or old) id of the event: image

Do you have a hack/workaround for this ? Thanks !