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 for the last row in ng-grid.
I tried using ng-show='$last'
and didn't work.
$scope.reasonsGrid = {
data: 'myReasons',
columnDefs: [
{field: 'add', displayName:'', cellTemplate: addTemplate,enableCellEdit: false,width:30},
{field: 'code', displayName: 'Reasons',cellTemplate: dropdownTemplate,enableCellEdit: false}]
};
var addTemplate ='span class="glyphicon glyphicon-plus-sign" ng-click="addItem(row.rowIndex)" ng-show="$last"/>';;