Reputation: 47
I want to manage the edit function of my ng2-smart-table but this code does not work for me, I have something wrong?
HTML
<ng2-smart-table [settings]="settings" [source]="source" (edit)="onEdit($event)"></ng2-smart-table>
Component
onEdit(event:any):void{
console.log("edit model");}
I can add new buttons and manage your behavior, any way I would like to know if I can subscribe to that event and how to do it
Upvotes: 0
Views: 934
Reputation: 47
this happens because ng2-smart-table needs the mode value to be modified in its settings
settings = {
actions: {
columnTitle: 'Actions'
},
mode: 'external',
Upvotes: 1