I am working on angular project I am using smart table. I have my .html as given
<ng2-smart-table [settings]="settings" [source]="source" (editConfirm)="onSaveConfirm($event)"
(deleteConfirm)="onDeleteConfirm($event)" >
</ng2-smart-table>
the .ts file is as follow
export class CoursesComponent {
settings = {
hideSubHeader: false,
mode: 'inline',
edit: {
editButtonContent: '<i class="nb-edit"></i>',
saveButtonContent: '<i class="nb-checkmark"></i>',
cancelButtonContent: '<i class="nb-close"></i>',
//confirmEdit: true,
},
delete: {
deleteButtonContent: '<i class="nb-trash"></i>',
confirmDelete: true,
},};
onDeleteConfirm(event): void {
console.log(event.data);
if (window.confirm('Are you sure you want to delete?')) {
event.confirm.resolve();
} else {
event.confirm.reject();
}
}
onSaveConfirm(event): void {
console.log(event.data);
}
}
I want to get the edited data of the table but I am not getting it. The properties in ng-smart-table are as given
edit: {
inputClass: '',
editButtonContent: 'Edit',
saveButtonContent: 'Update',
cancelButtonContent: 'Cancel',
confirmSave: false,
},
delete: {
deleteButtonContent: 'Delete',
confirmDelete: false,
},
any help?