ng2-smart-table
ng2-smart-table copied to clipboard
remove add button from action column in ng2-smart-table and show it outside of the table
How could i remove add button from action column in ng2-smart-table and set it outside of table?
I have same issue
Try action:false in settings
It will hide all action buttons is it ?
TO remove the button go to your smart-table.component.ts. In settings add the folloginw code.
// Hide the action button actions: { add: false, },
Can Add action be triggered from outside of table.
actions: { add: false, }, BUT I still see add button in my table !! @JVH31
In order to remove all the add row input fields you can do:
settings: { hideSubHeader: true }
It will remove the input fields and also the 'Add' button in Actions column
settings = { add: { addButtonContent: '', createButtonContent: '', cancelButtonContent: '', confirmCreate: true,
},
edit: {
editButtonContent: '<i class="nb-edit"></i>',
saveButtonContent: '<i class="nb-checkmark"></i>',
cancelButtonContent: '<i class="nb-close"></i>',
},
delete: {
deleteButtonContent: '<i class="nb-trash"></i>',
confirmDelete: true,
},
actions: {
delete: false, // if you want to remove delete button
edit: false; // if you want to remove edit button
},
actions: {
add: false, // if you want to remove add button
edit: false, // if you want to remove edit button
delete: false // if you want to remove delete button
},
edit: {
editButtonContent: '<i class="ti-pencil"></i>'
},
delete: {
deleteButtonContent: '<i class="ti-trash"></i>'
}