Exporting AgGrid to Excel

Hi @PablocFonseca Thank you for providing a great AgGrid component. I need to export AgGrid component (not pandas dataframe!) to Excel worksheet by clicking an st.button (not right-click on the component). I know that JS Grid implementation has gridOptions.api.exportDataAsExcel() function - but I need help on how to use it from Streamlit/Python.
Appreciate the suggestions from the other community members.