I am using TeraData Covalent's datatable in my angular project. The template I used had the following options for action buttons.
actionButtons: any[] = [
{
'title': "View",
'icon': "visibility",
'url': "/business-opps/contacts/view"
},
{
'action':'update',
'title': "Update",
'icon': "edit",
},
{
'action': 'delete',
'title': "Delete",
'icon': "delete",
'url': ""
}
]
Instead of giving a url i want to open a dialogue or maybe pass a function name.
My html for data-table is:
<datatable *ngIf="eodReports"
[dataList]="eodReports"
[columns]="dtColumns"
[actionButtons]="actionButtons"
[totalRecords]="totalRecords"
[sortBy]="'date'"
(deleteRecord)="deleteRecord($event)"
(nextPage)="nextPage($event)"
(filterRecords)="filterRecords($event)" >
</datatable>