Add html link in anyone of ng-grid

后端 未结 5 1534
自闭症患者
自闭症患者 2020-12-23 10:48

I want to add link to ng-grid. Here is my code for your reference

  

    

        
5条回答
  •  生来不讨喜
    2020-12-23 11:19

    The answer that Kabb5 gave is correct, but it appears that for newer versions of ui-grid, it does not work. Everything regarding the cellTemplate is valid, however, instead of

    row.getProperty(col.field)
    

    You need to do:

    COL_FIELD
    

    This was the only way I was able to get this to work.

提交回复
热议问题