ng2-table
ng2-table copied to clipboard
Added option to create column with action buttons.
I made a fork and implemented so it's possible to add more than one action button at the last column. It's a simple implementation, that following the same pattern from the ng2-table team.
Basically, I created a object that represents the action buttons that should be displayed at the table. The action may be identified by it's type.
export const TableActions:Array<any> = [
{
'title': '',
'type': 'edit',
'tooltip': 'Edit',
'classBtn': '',
'classIcon': 'fa fa-pencil',
},
{
'title': '',
'type': 'delete',
'tooltip': 'Delete',
'classBtn': '',
'classIcon': 'fa fa-trash',
}
];
Any update here? No word from the @valor-software team?