Toast
Toast copied to clipboard
Return new toast as a jquery object
Great plugin - it would be great to have the $.toast call returning the newly created object.
Thanks for the feedback @liamfl.
What benefits would this bring?
Just trying to gauge what it might be used for.
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.