Ag-Grid Link 与单元格中的链接 [英] Ag-Grid Link with link in the cell
本文介绍了Ag-Grid Link 与单元格中的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 ag-grid 构建 angular 4 应用程序,但我在尝试弄清楚如何在单元格中放置链接时遇到问题.有人可以帮我解决这个问题吗?谢谢
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
推荐答案
请查看此演示
cellRenderer: function(params) {
return '<a href="https://www.google.com" target="_blank" rel="noopener">'+ params.value+'</a>'
}
在这个演示中,city"列的单元格值是一个超链接.
In this demo, the cell value for the column 'city' is a hyperlink.
这篇关于Ag-Grid Link 与单元格中的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文