I am in need of a table with an edit button in every column using ng2. However, I have encountered an issue placing the buttons at the end of each column.
Here is my HTML code:
<ng-table [config]="config.sorting"
(tableChanged)="onChangeTable(config)"
[rows]="rows" [columns]="columns" >
</ng-table>
And here is my TypeScript code:
rows: Array<any> = [];
columns: Array<any> = [
{title: 'Name', name: 'accountname'},
{title: 'Position', name: 'email', sort: false},
{title: 'Office', name: 'phone', sort: 'asc'},
];
I wish to add an edit and delete button to each column. Can anyone provide guidance on how to achieve this?