SfToast Limit

Hi,

On the info page for Toast-component it says "They can restrict the maximum number of toasts that are displayed".
I can not find any examples of this in the documentation. Is it built-in in the component or is this something that we have to do ourselves?
Is there any examples for how to limit the number of toast being shown at once? 

We currently use version 18.3.0.48

Regards
Jesper

1 Reply 1 reply marked as answer

IS Indrajith Srinivasan Syncfusion Team January 14, 2021 10:47 AM UTC

Hi Jesper, 
 
Greetings from Syncfusion support, 
 
We have validated your reported query. You can limit the number of SfToast, from being shown from the application end. You can achieve the requirement, by incrementing an integer value in the button click event action and checking the limit value in the OnOpen event for preventing the SfToast from opening. We have also prepared a sample that tries to meet your requirements. 
 
 
Please let us know if the solution helps, 
 
Regards, 
Indrajith 


Marked as answer
Loader.
Up arrow icon