You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now, there are only two types of notification: alert and confirm with notyf--alert and notyf--confirm css classes respectively.
It would be better, if there was a way to add another type of notification or css class. For example, type warning (with another class).
Example API:
const notyf = new Notyf();
notyf.custom('We had some trouble', { className : 'warning' });
Thanks for this idea! v3.0.0 has been released with full support for registering new types as requested. Here's how to do it:
constnotyf=newNotyf({types: [{type: 'info',backgroundColor: 'blue',icon: false}]})notyf.open({type: 'info',message: 'Do not forget to pause the timer'});
Hi, thanks for such a great library.
For now, there are only two types of notification:
alert
andconfirm
withnotyf--alert
andnotyf--confirm
css classes respectively.It would be better, if there was a way to add another type of notification or css class. For example, type
warning
(with another class).Example API:
Or based on issue #22:
The text was updated successfully, but these errors were encountered: