I managed to add the class to the last line through the plugin:
function ngGridAddClassToLastRow(className) { var self = this; self.grid = null; self.scope = null; self.init = function (scope, grid, services) { self.domUtilityService = services.DomUtilityService; self.grid = grid; self.scope = scope; var addClass = function () { var lastRow = self.scope.renderedRows[self.scope.renderedRows.length - 1]; lastRow.elm[0].className = lastRow.elm[0].className + ' ' + className; }; self.scope.$watch(grid.config.data, addClass); }; }
And with this gridOptions added:
... plugins: [new ngGridAddClassToLastRow('<some class name>'), ...
And of course add some css for example. in my case:
.lastRow { border-bottom: 0px; }
It worked for me. I canβt say for sure that this is the way to go, because of course I am a noob with Angular and ngGrid. I built the plugin from a flexible height plugin .
source share