Git Product home page Git Product logo

Comments (10)

Foxandxss avatar Foxandxss commented on August 24, 2024

I don't know. I don't think the original one does it, but I have to diverge anyway.

What's the use case? I mean, I don't usually start pooping up hell of toasts :P

from angular-toastr.

katmai7 avatar katmai7 commented on August 24, 2024

I think it can be useful for me ;D
Maybe i use toast misused, but i have hell of toasts.
I show "info" toast, when user doing some unauthorised actions.

from angular-toastr.

softengi avatar softengi commented on August 24, 2024

I too would like to have this option. I have to keep the timeout a longer to make sure the error messages don't get skipped from user notice and my app can produce a lot of toasts if the user is performing operations quickly. Any plans of including this option or any workaround you could suggest?

from angular-toastr.

Foxandxss avatar Foxandxss commented on August 24, 2024

I can add it, it is something trivial and won't hurt.

from angular-toastr.

softengi avatar softengi commented on August 24, 2024

Please do add it. Thanks in advance.

from angular-toastr.

Foxandxss avatar Foxandxss commented on August 24, 2024

Thinking twice @softengi @katmai7. What would be the idea when the maximum number of toasts is reached? Discard new ones? Remove the last one to put a new one? Queue them?

from angular-toastr.

softengi avatar softengi commented on August 24, 2024

I would suggest closing off the oldest toast and add the new one.

from angular-toastr.

Foxandxss avatar Foxandxss commented on August 24, 2024

This is done on 1.0.0-beta.1

from angular-toastr.

softengi avatar softengi commented on August 24, 2024

@Foxandxss I see that you added support to queue the new notifications. Could you make it configurable to support closing off the oldest toast, as well. If not, could you suggest how I can achieve the same, at my end?

from angular-toastr.

Foxandxss avatar Foxandxss commented on August 24, 2024

@softengi I am afraid that it doesn't support that. I tried, I really tried but I never get it right. Seems to be easy but there is always a race conditition of creating vs destroying and I couldn't get it right.

If you or anyone else wants to try it, send a PR.

from angular-toastr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.