Open Closed

Change position of toastr - globally (MVC .NetCore) #11111


0
ricardo created
  • What is your product version: v10.5.0
  • What is your product type (Angular or MVC): MVC
  • What is product framework type (.net framework or .net core): .NetCore

How can I globally change the position of the toastr in MVC .NETCORE

Tanks.


3 Answer(s)
  • 0
    musa.demir created
    Support Team

    Hi @ricardo Aspnet Zero uses www.toastrjs.com. You can check it's documentation.

  • 0
    ricardo created

    Hi @musa.demir

    Changed : ..\aspnet-core\src\Tecsmart.Epm.Web.Mvc\node_modules\abp-web-resources\Abp\Framework\scripts\libs\abp.toastr.js

    still showing on the right side. Am I letting something slip away?

  • 0
    ismcagdas created
    Support Team

    Hi @ricardo,

    You shouldn't change a file under node_modules folder because those files arae not stored in source control and when you install NPM packages again, it will be gone.

    Instead, create a new JS file and set toastr.options.positionClass in that JS file and add it to bundles.json file for account-layout-libs.min.js and app-layout-libs.min.js bundles as the last item.