toast.js icon indicating copy to clipboard operation
toast.js copied to clipboard

update or remove an existing toast

Open TroyLDay opened this issue 12 years ago • 0 comments

It would be useful to have a programmatic way to

  1. remove an existing (visible) toast before it is clicked or times out, so a new toast can be shown.
  2. update the content of an existing toast with new information.

Both approaches could achieve the same thing. Initially, I think the remove method would be cleaner but would require a way to track existing toasts before they are removed. The second approach also requires tracking, and may be more user friendly because it maintains the order/stacking of all existing toasts.

TroyLDay avatar Oct 25 '13 19:10 TroyLDay