Injecting custom js code into streamlit components

Hi I am using the staggrid component and want to embed buttons which then open up a window to show some details about the row, something like this

For this to work I would need to inject a custom cell renderer (= js class) into the existing staggrid component to be able to use it. Does anybody know how this could be done?

I’m not exactly a frontend developer, maybe it could also be a general javascript file that’s sort of globally defined for the streamlit website. I just need AgGrid to be able to see it.

you can use JsCode class from st_aggrid like shown in this post

@thunderbug1

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.