Cogoport/cogo-toast

Add : a maximum number of toast to the container & clear all toast possibility

AaronActu opened this issue · 0 comments

It would be really great if we could have a parameter to specify a maximum number of toast to the toast-container 🥇

Example : if I've instantiated 3 toasts and I set a limit of 1 toast per container, then the other two toasts are "pending". Once the toast n°1 has expired, it's the turn of the n°2, and so on...

Also, it'd be great to have a method to remove all the toast in a container (enqueued or not).

Thanks in advance !