Skip to content

Infragistics Community Forum / Web / Ignite UI for Angular / I want to develop error and success notifications with snack bar

I want to develop error and success notifications with snack bar

New Discussion
Rameez Sadikot
Rameez Sadikot asked on May 12, 2021 3:50 AM

Hi all,

I would like to use snackbar component for notifications in our application. I want to know if we can have different color combinations for success and error and similarly some others according to the requirement.

I have looked into customising snack bar but that is at the app level and for a single instance which would apply all over the application.

Thanks in advance.

Sign In to post a reply

Replies

  • 0
    Mihoko Kamiishi
    Mihoko Kamiishi answered on May 12, 2021 2:48 AM

    Hello Rameez,

    Thank you for contacting Infragistics Developer Support.

    You can style individual snack bars by setting an id to IgxSnackbarComponent and define css class for each instance.

    I have created a sample for you.

    https://stackblitz.com/edit/github-nmwp8s-4pmdux?file=src/app/snackbar-sample-1/snackbar-sample-1.component.html

    • 0
      Rameez Sadikot
      Rameez Sadikot answered on May 12, 2021 3:50 AM

      Thanks Mihoko for the quick response. It worked! 

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Rameez Sadikot
Favorites
0
Replies
2
Created On
May 12, 2021
Last Post
4 years, 9 months ago

Suggested Discussions

Created by

Created on

May 12, 2021 3:50 AM

Last activity on

Feb 23, 2026 5:57 AM