Topic: MDB5 Toast Component
icontacts premium asked 2 years ago
Hello MDB Team,
We've just updated our project from MDB4 to MDB5 Angular
I've got a question about MdbNotificationModule. In the previous version of MDB Angular Pro (MDB4) Toast Service has the option to generate toast messages using the color option https://mdbootstrap.com/docs/angular/advanced/notifications/#basic
I wasn't able to find anything like this in the new MDB5 Angular version of the notification service: https://mdbootstrap.com/docs/b5/angular/components/toasts/
I understand that it can be implemented by creating 5 different toast components for every type of event that the project needs (success, error, info, etc...), but it looks excessively The second way which looks more preferable is to try to pass color using the data inject option (I will try to implement it this way).
So the question is - did I miss some color setup option in the documentation section? Maybe there is some data-attribute for that which is not mentioned in the documentation?
@icontacts In MDB Angular 5 we deliberately left the HTML part of the component on the user's side to allow for more customization, but we agree that the ability to render the component directly by calling the service method can be very useful in some cases.
We will add this feature to the ideas list and consider implementing it in the future.
This topic is closed.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Premium
- Premium support: Yes
- Technology: MDB Angular
- MDB Version: MDB5 1.0.0
- Device: PC
- Browser: Chrome
- OS: Windows 10 Pro
- Provided sample code: No
- Provided link: Yes