Open radsin99 opened 5 years ago
Maybe duplicate of https://github.com/akveo/ng2-smart-table/issues/1049
I want to emit an event on clicking save button in ng2-smart table. Basically I want to enable a button which is outside on save event fired from ng2 smart table editconfirm.
Aim: Fire an even to enable save button only by clicking cancel button. Please find the code- HTML
<ng2-smart-table [settings]="tableSettings" [source]="tableData" (editConfirm)="updateRecord($event)" (createConfirm)="onCreateConfirm($event)"></ng2-smart-table>
component tableSettings = { columns: {}, // Make this object dynamic on every change of Entity add: { confirmCreate: true, addButtonContent: '', createButtonContent: '', cancelButtonContent: '' }, edit: { confirmSave: true, editButtonContent: '', saveButtonContent: '', cancelButtonContent: '' }, actions: { delete: false }, pager: { perPage: 20 }, attr: { class: 'fixed_header' } };