Is there a way to move the delete action to the last column in an 'ng2' smart table?
I am looking to have the delete action appear only in the last column of my table in the ng2
smart table. Can anyone provide assistance with this matter?
Below are the settings and code for the table I am currently using:
this.settings = {
add: {
confirmCreate: true,
addButtonContent: '<i class="fa fa-plus" title="Add"></i>',
createButtonContent: '<i class="fa fa-save" title="Save"></i>',
cancelButtonContent: '<i class="fa fa-remove" title="Cancel"></i>'
},
delete: {
confirmDelete: true,
deleteButtonContent: '<i class="fa fa-trash" title="Delete"></i>'
},
edit: {
confirmSave: true,
editButtonContent: '<i class="fa fa-edit" title="Edit"></i>',
saveButtonContent: '<i class="fa fa-save" title="Save"></i>',
cancelButtonContent: '<i class="fa fa-remove" title="Cancel"></i>'
},
columns: {
logDate: {
title: 'Log Date*',
filter: false,
type: 'custom',
width: '5%',
renderComponent: DatePickerRenderComponent,
editor: {
type: 'custom',
component: DatePickerEditorComponent,
},
},
category: {
filter: false,
title: 'Category*',
type: 'html',
editor: {
type: 'list',
config: {
list: this.customerList,
},
},
},
partId: {
filter: false,
title: 'PN/ID#*'
},
description: {
filter: false,
title: 'Description'
},
ws: {
filter: false,
title: 'WS',
type: 'custom',
renderComponent: CheckboxRenderComponent,
editor: {
type: 'custom',
component: CheckboxEditorComponent
}
};