In an ng2-smart-table
in Angular 2 I want to add a new button in the actions column and by clicking on this button it will route to another page.
This code has the add, edit, and delete buttons. I tried to make the new button like this but it's not working:
settings = {
add: {
addButtonContent: '<i class="ion-ios-plus-outline"></i>',
createButtonContent: '<i class="ion-checkmark" ></i>',
cancelButtonContent: '<i class="ion-close"></i>',
confirmCreate: true
},
edit: {
editButtonContent: '<i class="ion-edit"></i>',
saveButtonContent: '<i class="ion-checkmark"></i>',
cancelButtonContent: '<i class="ion-close"></i>',
confirmSave: true
},
delete: {
deleteButtonContent: '<i class="ion-trash-a"></i>',
confirmDelete: true
},
How can I add the button? I searched the documentation and I couldn't find anything related to this.