We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Solved[how to set position of toast?]

hi
i'm confusing after read toast React Syncfusion documentation for set position.
any clear example for this configuration?
i want set my toast to top right.
thanks

3 Replies

NP Narayanasamy Panneer Selvam Syncfusion Team August 3, 2019 04:53 AM UTC

Hi safronco, 
 
Greetings from Syncfusion support. 
 
In documentation we have documented Toast position sample to expose different possibility combinations of position. For the purpose of exposing feasibility of using position api, we used Dropdownlist, radio buttons and button components in sample. So that it may seems many lines of code being used. 
 
For your convenience we have prepared a simple sample as per your requirement: https://stackblitz.com/edit/react-zckwrm 
 
Please find the reference for position API: https://ej2.syncfusion.com/react/documentation/api/toast/#position 
 
Regards, 
Narayanasamy P. 



SS safronco safronco August 3, 2019 09:24 AM UTC

solved...

    constructor() {
        super(...arguments);
        this.position = { X: 'Right', Y: 'Top' }
       
    }


NP Narayanasamy Panneer Selvam Syncfusion Team August 5, 2019 07:01 AM UTC

  
Hi Safronco, 
Most welcome. 
 
We are glad to hear that your issue has been resolved at your end. 
 
Regards, 
Narayanasamy P. 


Loader.
Live Chat Icon For mobile
Up arrow icon