Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
365
igx-dialog Sample -Common Component across application
posted

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

Parents
  • 1560
    Offline posted

    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 Hristodorova
    Software Developer

Reply Children