Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does ng-grid supports cell filter (angular filter) by row

ng-gird colDefs (column Definition) allows you to define a filter (angular filter) for each column.

In my use case, I need to use filter per row. This means, data in some rows will have number format and other might have percentage.

Does ng-grid supports filter per row? Please note, this is not filtering rows, this is applying same display format to the cells of a row.

like image 407
Jhankar Mahbub Avatar asked Dec 11 '22 05:12

Jhankar Mahbub


1 Answers

This is now (as of 2014) possible natively with the current ngGrid:

columnDefs: [
  {
    field: 'name',
    cellFilter: 'lowercase'
  }
]

Or even with the filter arguments:

columnDefs: [
  {
    field: 'name',
    cellFilter: 'currency:"GPB"'
  }
]
like image 97
kamituel Avatar answered Dec 28 '22 09:12

kamituel