Are there any plans to add click events or selection state to items in a timeline component? I'd like to build a UI that displays additional details for a selected event in a timeline.
2 Likes
+1
Not at the moment, but it is a request that is being tracked. It hasn't been picked up yet, but if it gets included we can let you know here!
Good to know, thanks!
+1
1 Like
+1
Hi all! I'm happy to share that the new and improved Timeline
component supports contextual onClick
event handlers.
Because the component still doesn't have a selected
state, though, you'll need to keep track of that info via a global variable. Depending on your needs, one alternative to the above is to define a tooltip with additional event details.
I hope this new feature suits your needs! Don't hesitate to follow up here if you have any feedback.
1 Like