I am experiencing an issue with handling dynamic dialogs in PrimeNG.
Is there a solution for managing actions on a dialog other than just using the close
option?
For instance, in the context of the Kendo-UI
dialog example, I can specify the content.instance of the component and access fields within the component instance that is opened as a dialog.
const ref = this.dialogService.open(ResourceComponent, {
data: {
logicFormGroup: this.formGroup,
resources: this.resources$
}, width: '700px'
});
ref.onClose.subscribe((result: ResourceModel) => {
console.log(result);
});
ref.addPersonEmitter.sub(....)
in component ResourceComponent
@Output() addPersonEmitter = new EventEmitter();