Hi,
I am fetching data using http.get.
and getting two values
buy_report and buy_report_link.
I want to show buy_report as a href with value buy_report_link in my ag-grid?
But using cellrender
{
headerName:"Buy Report",
field:"buy_report",
width:120,
cellStyle: { 'text-align': "left" },
cellRenderer: function(params) {
return '<a href="http://local.com//'+params.value.toLowerCase()+'" target="\_blank">'+ params.value+'</a>'
}
},
onGridReady(params){
this.gridApi = params.api;
this.gridColumnApi = params.columnApi;
this.http.get("http://local.com/past-recommendations")
.subscribe(data=>{
this.rowData = data as any;
});
here I can use same column value but
I want to use other column vauue(buy_report_link).
Any idea how I can achieve this?
thanks