Ag-Grid Link with link in the cell

Tom Brzeski picture Tom Brzeski · Sep 5, 2017 · Viewed 29.7k times · Source

I am building angular 4 app with ag-grid and I am having an issue with trying to figure out how to put a link in the cell. Can anybody help me with that issue? Thanks

Answer

C.O.G picture C.O.G · Sep 5, 2017

Please check this demo

cellRenderer: function(params) {
  return '<a href="https://www.google.com" target="_blank" rel="noopener">'+ params.value+'</a>'
}

In this demo, the cell value for the column 'city' is a hyperlink.