We are currently using ng-grid to display click-able flags in a grid, ie. cell 1 contain a green flag, cell 2 empty, cell 3 contains a red flag.
The flag represents the status.
To make the flag clickable, we have created a directive within each sell
<gridresultsummary data-ng-click="filterReportByOrderFromSummary()" resultsummaryflag="{{row.entity[col.field]}}" />
the filterReportByOrderFromSummary() function at the moment, simply shows a static alert. What we are struggling to achieve, it a way to pass the column header into this function. we have tried many variations of
{{row.entity[col.field]}}
{{row.entity[col.header]}}
{{row.entity[col.headerValue]}}
however, still cant seem to capture it.
What is the syntax to retrieve the column header within a directive?