streamlit-aggrid icon indicating copy to clipboard operation
streamlit-aggrid copied to clipboard

General Question: plugging in custom components

Open scottweitzner opened this issue 4 years ago • 3 comments

Awesome library @PablocFonseca! A quick question for you:

My firm has an enterprise license for AGGrid, but we also have a number of custom "wrappers" around the library in order to modify the look/feel of components. If we wanted to plug these into what you have built here what would be the path forward to do so? Really appreciate your time.

(Full disclosure: I am not a frontend dev by any stretch of the imagination so this is uncharted waters for me)

scottweitzner avatar Sep 15 '21 03:09 scottweitzner

Are those wrappers written in react? I'd need to know little bit more, maybe its possible to di a custom agGrid.

PablocFonseca avatar Sep 25 '21 14:09 PablocFonseca

If I may hijack this thread: I could imagine something like this as an example for what @scottweitzner mentioned. In this case, it's a simple cell renderer extension allowing boolean values to be rendered and interacted with as checkboxes instead of strings.

This is possible with both React and vanilla JS, but requires extending AGGrid's list of components. (How) can this be done with streamlit-aggrid?

And thanks for all your work, your library is immensely useful!

rmitsch avatar Oct 12 '21 11:10 rmitsch

I just got a PR from @ljnsn that includes custom CSS into AgGrid. My guess is that something similar may be used to inject custom Javascript. I still have to try, but I can't commit to a date. If someone's manage to do this, send me a PR.

PablocFonseca avatar Jan 24 '22 00:01 PablocFonseca