Reputation: 3169
I have a linq template cell in UI-grid. the code in Controller:
var Station = '<div class="ngCellText" ng-class="col.colIndex()"><a target="_blank" href="{{row.entity.station.href}}">{{row.entity.station.text}}</a></div>';
and
columnDefs: [
{ name: 'Station', cellTemplate: Station },
How can I add sorting, filtering this column by Station.Text ?
Upvotes: 2
Views: 487
Reputation: 3169
By changing name property of the column to station.text the column could be sorted and filtered by text while showing a link as described in the template.
Upvotes: 1