Im trying to create a common Dialog Component which can be open from any component. and will be able to pass custom messages from any other components. am not finding any samples for the same.
Along with it create a sample where i can call Dialog within another dialog and pass messages between them
Hello,
I have been looking into your questions and regarding the first one, I could say that sharing data between a parent component and a child component could be implemented using the @Input() and @Output() decorators. A topic that you might consider helpful could be found here. I have prepared a small sample in order to demonstrate how this could be achieved, however, since this requirement is more related to Angular rather than to our library and should be handled entirely on application level, this could be considered beyond the scope of Infragistics support.
Regarding your second question, my suggestion in order to open a second dialog is to call its open method. Also, you could pass data between them using the same approach with @Input() and @Output() decorators. In the sample mentioned above, a second dialog is opened when the 'OK' button of the first one is clicked.
However, please keep in mind that according to our policy we handle a single issue per case and my suggestion is to create separate threads for your questions about different scenarios.
This is for better consistency and history tracking.
Let me know if I may be of any further assistance.
Sincerely,Teodosia HristodorovaSoftware Developer
thanks this helps to get started. the other example was little confusing
https://stackblitz.com/edit/generic-igx-dialog?file=src%2Fapp%2Fmy-custom-dialog%2Fmy-custom-dialog.component.ts
how do we set the width or height of the dialog as per screen size