ng-grid how to show/hide button in a column cell for last row

前端 未结 3 1488
一生所求
一生所求 2021-01-16 20:06

I have a ng-grid table and one of the column Defs has a cell template to show icon. Currently icon shows up across all rows.

Can anyone help me how to display icon f

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-16 20:53

    You can use $index also.. Use ng-show/ng-hide and put the condiltion $index== $last.

提交回复
热议问题