In my old software, I use ui-grid. Now I use p-table. I have a little problem; when I render some cells i want to execute callback for formatting value. Example:
Code: Select all
<td class="ui-resizable-column" class="myclass" *ngIf="col.hidden == false">
{{rowData[col.field]}} <---- Here I should call the callback
</td>
Code: Select all
function callback(column, rowData) {
if (column.hasfunction) {
return columns.cbfunction(rowData[col.field])
} else
{
return rowData[col.field];
}
}
thank's at all.
MarcoB