I want to put a custom property in $scope.gridOptions.columnDefs, e.g:
$scope.gridOptions.columnDefs = [
{
field: 'field',
displayName: 'Name Field',
cellFilter: 'nameField',
headerCellTemplate: '../header-cell-template.html',
customProperty: 'some text for tooltip'
},
{
...
}
]
then, in the headerCellTemplate
i'm using uib-tooltip
:
<div role="columnheader">
....
<span class="ui-grid-header-cell-label">
{{col.displayName}}
</span>
<span class="icon" uib-toolotp='{{col.customProperty}}' tooltip-placement='right'></span>//it's not working, col.customProperty = underfined, but working if expression {{col.displayName}}
....
</div>
what is the other working way to put text to template?
Each cell has col.colDef property with access to all properties like field, displayName, tooltipDescription etc.