Coder Social home page Coder Social logo

Comments (6)

Daltron avatar Daltron commented on August 20, 2024

Hi @ashokkumars! 😄 Are you familiar with the queuePosition property when calling banner.show()? Or are you stating that you may have a notification that makes all other banners on the queue completely irrelevant, thus they should never be shown?

from notificationbanner.

ashokkumars avatar ashokkumars commented on August 20, 2024

Hey @Daltron. I am aware of the queuePosition. But lets consider this case. I am calling 3 or 4 webservices in a class and all of them for some reason gets failed. All the error messages will be added to a queue. But before all banners gets shown (from the queue), if the device network gets disconnected, I need to show another banner which is for the network disconnect. After this banner is shown, showing webservice error banners is of no use. So, I felt like, there should be a method, which should allow me to clear the existing banner queue. This is just one use case, there can be many other cases as well.

from notificationbanner.

Daltron avatar Daltron commented on August 20, 2024

@ashokkumars Ok perfect, thanks for explaining! I just added this functionality to the v1.4.1 release! 🎉

from notificationbanner.

firvorski avatar firvorski commented on August 20, 2024

Hi, it looks like removeAll() is not there any more in 1.4.2. I also thought it would be quite useful to be able to remove all queued notifications. Is there a chance it will be put back or should we stick with 1.4.1 for now?

Edit: I think this functionality would also be useful if a user presses several things that trigger notifications in one view, they don't all get shown but are queued. The user then switches to another view. Now in the other view these notifications may be irrelevant and would come as a nuisance.

Also, it seems that the method removeAll is private in 1.4.1.

from notificationbanner.

Daltron avatar Daltron commented on August 20, 2024

Hi @firvorski! 😄 This was an accidental mistake! It is now included and public in the 1.4.3 version! Thanks for bringing this to my attention! 👍

from notificationbanner.

firvorski avatar firvorski commented on August 20, 2024

You da man!
Thanks a lot.

from notificationbanner.

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.