Toast icon indicating copy to clipboard operation
Toast copied to clipboard

Return new toast as a jquery object

Open liamfl opened this issue 5 years ago • 2 comments

Great plugin - it would be great to have the $.toast call returning the newly created object.

liamfl avatar Sep 04 '19 09:09 liamfl

Thanks for the feedback @liamfl.

What benefits would this bring?

Just trying to gauge what it might be used for.

Script47 avatar Oct 19 '19 16:10 Script47

If the toast call returned something we can hold onto, then we would be able to use that to update or dismiss the toast. For example, a toast which says "You have lost your connection" could be removed when the connection is restored. Right now, we can do it by assigning our own ID to the toast and then selecting by ID.

rringrose avatar Nov 10 '21 21:11 rringrose