giswqs / streamlit-timeline

Streamlit component for rendering vis.js timeline
https://timeline.streamlitapp.com
MIT License
93 stars 11 forks source link

Is there anyway to return all items from st_timeline() instead of just the selected? #12

Open neldivad opened 1 month ago

neldivad commented 1 month ago

Suppose I deleted a content from st_timeline object, I need the information to be reflected in subsequent functions.

Currently st_timeline() feels like a static object that displays a timeline based on what info you initialized it and that's it.

Deleting and moving items just changes the display, but not any of its information.

giswqs commented 1 month ago

Sorry, I don't have the bandwidth to continue developing the project. Contributions are welcome.

neldivad commented 1 month ago

Js is not my native language, so its hard to change its behavior. But I notice the problem this component has that visjs doesn't have is that visjs saves and updates edited information in DataSet.

With streamlit, the feature is missing or was abstracted very deep within and unable to surface to the backend with return. (meaning st_timeline() obj returns a dict, so you don't have a method to access the changes or updates. You also can't manually set values to streamlit session state after editing the object)

Would appreciate someone with the background to waddle through the backend.

Regardless, thanks for the package. Its useful for showing static calendar events, but not yet compatible with performing task like video/audio editing.