I have used below example in my code to edit table record in drawer -
https://ng-alain.com/components/st/en?#components-st-buttons
I have succeed to open and edit record inside drawer and closed it, all is fine up to here. But main issue is that "How can I refresh parent table after drawer get closed.
I have tried few thing from documentation but it wont help for me, also emitted event from child component but its not get received/catched in parent component.
Any help, hint will be appreciated. :)
buttons: [
{
icon: 'edit',
tooltip: `Edit`,
click: (_record, drawer) => this.onEditClick(_record, drawer),
type: 'drawer',
afterClose: (x:any)=>{console.log('panel closed',x);},
drawer: {
component: EditComponent,
params: (record: STData) => {return record},
paramsName: 'record',
drawerOptions: {
nzTitle: 'Edit',
nzWidth: '20%',
nzClosable: true,
nzMaskClosable: true,
}
},
}]