Base solution for your next web application
Open Closed

Change position of toastr #7468


User avatar
0
antonis created

Hi,

Iam using angular and aspnet core. Trying to change the position of toaster to bottom but it does no work. still shows top right


abp.notify.warn("Test message", "title", {
                    position: "bottom-start"
                })

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

    I can't reproduce the problem you encountered. What is your zero version? And angular notify using sweetalert2

  • User Avatar
    0
    antonis created

    I am using aspnetzero 6.5.0

  • User Avatar
    0
    maliming created
    Support Team

    hi @antonis

    Try modifying the angular/src/assets/abp-web-resources/abp.notify.js file

    var combinedOptions = Object.assign(defaultOptions, options); Change into var combinedOptions = Object.assign({}, defaultOptions, options);

    see: https://github.com/aspnetzero/aspnet-zero-core/commit/4f2c24c864df8395b436dc7c284dacf6a9ca2fb7#diff-2777b2b0091312d84a5eaa570f159309