I want to store ag-grid selected row from jscode and use it to my streamlit code

js = JsCode(“”"
function(e) {
debugger;
alert(e.node.data);
console.log(e);
console.log(e.node.data);
console.log(e.node.selected);
console.log(‘jay’);
console.log(e.rowIndex);
return e.node.data
};
“”")

    options.configure_grid_options(onRowSelected=js)

How can i read the js and store in some list.

Hi @mrityunjay, wouldnt it be simpler to just use: YourGridVariable[‘selected_rows’]?

Cheers