Hyperlinks in column cells stopped working recently
See original GitHub issueI have been successfully using this very useful package, and until recently could implement hyperlinks in a column with the code:
gb.configure_column("ISSUE", headerName="ISSUE", cellRenderer=JsCode('''function(params) {return '<a href="https://thebcd.co.uk/issue_' + params.value + '" target="_blank">'+ params.value+'</a>'}'''), width=300)
which would result in a hyperlink to an address related to the cell value.
On editing a different part of of my app, I now find that instead of creating a hyperlink to the address, the html text is written to the screen instead:
<a href="https://thebcd.co.uk/issue_1" target="_blank">1</a>
rather than the hyperlink 1 to the address. Any help appreciated.
Issue Analytics
- State:
- Created a year ago
- Comments:8 (2 by maintainers)

Top Related StackOverflow Question
Replacing the cellRenderer parameter with params.value works. See the code at:
https://github.com/dajavous/thebcd-public/blob/main/nestedgrids.py
and the app at:
https://dajavous-thebcd-public-nestedgrids-n11jj7.streamlitapp.com/
@dajavaus , thank you very much for your help. It’s working, after I followed your kind instructions!! Now I can see what my problem was 😃