OncoPrint modifications

I want to modify plotly’s OncoPrint component so that clicking a gene on the left triggers a prop update. I found that I can wrap the gene text here with different HTML elements, but I’m unable to add an onclick to them to trigger a prop change. What would be the best way to do this?