Change default position of Toastr messages

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Change default position of Toastr messages

Postby roddy » Tue Mar 22, 2022 12:28 am

I have not been able to find any documentation on the Toastr messages outside of a forum post (viewtopic.php?f=69&t=22214) which contains a CSS class but not where it would be be placed for it to be effective. There is nothing on the Wiki of the NG1 CodeSeven Github page.

Is it possible to set the placement of the NG1 web notification Toastr messages? There is a createToastrOptions() and a setGlobalOptions() but no documentation on how these can be used.

Any information would be really welcome :-)
roddy
 
Posts: 100
Joined: Mon Oct 26, 2020 12:32 am

Re: Change default position of Toastr messages

Postby mboegem » Tue Mar 22, 2022 9:33 am

Hi Roddy,

you can set the positionClass property using the toastr options.
Different classes can be found here: https://cdnjs.cloudflare.com/ajax/libs/ ... toastr.css

Hope that helps
Marc Boegem
Solutiative / JBS Group, Partner
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image

Partner of Tower - The most powerful Git client for Mac and Windows
User avatar
mboegem
 
Posts: 1743
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Change default position of Toastr messages

Postby roddy » Mon Mar 28, 2022 6:00 am

Thanks for that; it worked like a charm :-)
roddy
 
Posts: 100
Joined: Mon Oct 26, 2020 12:32 am


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 15 guests

cron