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
close icon

Solved[how to set position of toast?]

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.

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 
Narayanasamy P. 

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


    constructor() {
        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. 
Narayanasamy P. 

Live Chat Icon For mobile
Up arrow icon