Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use custom cell renderers? #63

Closed
thunderbug1 opened this issue Feb 1, 2022 · 2 comments
Closed

How to use custom cell renderers? #63

thunderbug1 opened this issue Feb 1, 2022 · 2 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@thunderbug1
Copy link
Contributor

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) it 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.

@PablocFonseca
Copy link
Owner

I'd need to add a custom_js_script to be injected, similar to what custom_css does today. I'll add that to my list.

@PablocFonseca PablocFonseca added enhancement New feature or request question Further information is requested labels Apr 7, 2022
@kjakaitis
Copy link
Contributor

@PablocFonseca I submitted a PR with very small tweaks that allows to use rendering classes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants