Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬 Register for the Oct 27 webinar.

Have action in a text block trigger a callback in a data graphic?

Suppose I have a markdown block or other text block, maybe with an anchor tag in it. Is it possible to have the user click on the text and then trigger a callback in a data visualization? Sometimes I have sentences or paragraphs that correspond to a particular view of the data visualization that I want people to see when they get to that part of the text description.

definitely! break up your long paragraph into multiple html components (like html.Span) and the give those items a special style (to denote that they’re clickable) and an id. then, listen to the n_clicks property of those spans in your callback.