How to add conditional styling when showing data in ui-grid cellTemplate below: I want to mofify format to be shown as link or no link. Similar to Conditional cell template in ui-grid angularjs.
var myTemplate = '<div>{{getExternalScopes().showName(row.entity)}}</div>'
$scope.gridOptions = {
columnDefs: [
{ field: 'code' },
{ field: 'name', cellTemplate: myTemplate},
// field 'link
]
};
The expected result should be that name is link or text based on parameter link
Thanks in advance.