does not get triggered but changing onGridReady to onCellClicked works. Upon digging into the code, I noticed that when instantiating the <AgGridReact> component (src), onGridReady is explicitly passed in as a react prop. This will overwrite whatever value passed in by the user in gridOption (src).
This prevents downstream streamlit apps from hooking into this event, which I think severely limits customization (such as setting default filters based on other streamlit components.
I think the field passed in by the user in gridOption should be chained to the one defined defined in the React component provided by this library.
I noticed that passing onGridReady handler in
does not get triggered but changing
onGridReady
toonCellClicked
works. Upon digging into the code, I noticed that when instantiating the<AgGridReact>
component (src),onGridReady
is explicitly passed in as a react prop. This will overwrite whatever value passed in by the user in gridOption (src).This prevents downstream streamlit apps from hooking into this event, which I think severely limits customization (such as setting default filters based on other streamlit components.
I think the field passed in by the user in gridOption should be chained to the one defined defined in the React component provided by this library.