Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Change position and duration of alert #4053


User avatar
0
antonis created

Hi,

I want to ask how can I change the position of the abp.notify... popup to start from top right instead of bottom right? See link below.

[https://1drv.ms/i/s!Ap6vT6kvVLZ0jFlmnTqGuXwRD76O])

And also how can I change the duration of it?

Thanks in advance.


3 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team

    You can override positionClass for toastr in your js file:

    toastr.options.positionClass = 'toast-top-right';
    
  • User Avatar
    0
    antonis created

    Hi,

    I am using aspnet core with angular 2 solution. How can I do that in this project type?

  • User Avatar
    0
    antonis created

    OK Found it.

    For anyone with the same requirement I declared it on root.module.ts in appInitializerFactory function to change it globally in the app

    Thanks