akveo / ng2-smart-table

Angular Smart Data Table component
https://akveo.github.io/ng2-smart-table/
MIT License
1.63k stars 880 forks source link

I want to emit an event on clicking cancel button in ng2-smart table. I cant Find a way to bind #1053

Open radsin99 opened 5 years ago

radsin99 commented 5 years ago

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' } };

longgt commented 5 years ago

Maybe duplicate of https://github.com/akveo/ng2-smart-table/issues/1049

radsin99 commented 5 years ago

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.