Hey Kiran, I have a couple ideas for hacks for this.
The closest thing to what you are looking for is probably the onCellClicked grid option. This option can take some JsCode that will be executed whenever a cell is clicked. I don’t know javascript well enough to tell you what that code should be, though. Using the GridOptionBuilder, this would look something like:
gb.configure_grid_options( onCellClicked = JsCode(“”“function(event) { <your code> }”“”) )
The second idea would be to mess with the master-detail stuff. The aggrid documentation for this is here. To use this for st_aggrid, you can use the gridOptionBuilder to set the option masterDetail to True, and set detailCellRendererParams to a dictionary which at least includes “getDetailRowData” : <Some JSCode to access the text>.
This may look something like:
gb.configure_grid_options(
masterDetail=True,
detailCellRendererParams={
“detailGridOptions”: {
“columnDefs”: <your code>,
},
“getDetailRowData”: JsCode(“”“function(params){
params.successCallback(params.data.VulnerabilityImpact);
}”“”),
},
)
Not sure if that is exactly right because VulnerabilityImpact column has just strings instead of its JSON objects, but you can probably figure it out from there.
Finally, I think there might be grid options that works like onCellClicked but for double click and right click, but I don’t remember their names or how they work.
(Look at this Angular Data Grid: Grid Events (ag-grid.com))