I’ve a list of html.Span components, each one is a line in my history log with timestamp. Now I’d like to be able to catch the span’s on click event and get that timestamp to move my chart to that timestamp. I’m trying to do that with Dash’s matching callback but frankly I don’t really understand it, and my concern is that for a large number of spans the app’s performance might be affected.
HI @uzimaster I think your approach should be OK. As far as pattern matching callbacks, here an example assuming you have one Output() only . Using ALL, the argument for stamp is a list. Extracting the triggering index, you know the index of the triggering timestamp in your list.
Thank you. I tried your solution and it does work, but when my history went up to thousands, the browser almost hang. I’m thinking of catching the event from their parent (the outer html.Pre component). Is this possible?