I\'m trying to add a button to custom action, but a new column is not added in the action, making the button overlap with the others.
Code:
settings = {
Now you can use just like below to change action icons of ng2 smart table. You can change the side of the action column use position: "right"
property. for more refer
https://github.com/akveo/ngx-admin/blob/master/src/app/pages/tables/smart-table/smart-table.component.ts
settings = {
edit: {
editButtonContent: '',
saveButtonContent: '',
cancelButtonContent: '',
confirmSave: true
},
delete: {
deleteButtonContent: '',
confirmDelete: true
},
columns: {
id: {
title: "Id",
filter: true
},
name: {
title: "Name",
filter: true
},
transport: {
title: "Transport",
filter: true,
valuePrepareFunction: value => {
return value === 1 ? "Yes" : "No";
}
},
route: {
title: "Route",
filter: true
},
telephone: {
title: "Telephone",
filter: true
},
mobile: {
title: "Mobile",
filter: true
},
land_name: {
title: "Land Name",
filter: false
}
},
actions: {
add: false,
position: "right"
},
pager: {
display: true,
perPage: 10
}
};