mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
ACS-8254 [ADF] Add functionality to pass data on confirmation in DialogComponent (#9845)
This commit is contained in:
committed by
GitHub
parent
215b9c2e4b
commit
785b5821a0
@@ -89,9 +89,12 @@ function openDialog() {
|
||||
title: 'Dialog title',
|
||||
contentComponent: ExampleDialogComponent,
|
||||
componentData: { nodeId: 'nodeId', name: 'node name' } // any data can be passed
|
||||
dataOnConfirm$: of({ nodeId, data: {} })
|
||||
};
|
||||
|
||||
this.dialog.open(DialogComponent, { data });
|
||||
const dialogInstance = this.dialog.open(DialogComponent, { data });
|
||||
|
||||
dialogInstance.afterClosed().subscribe((data) => data) // data = { nodeId, data: {} }
|
||||
}
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user