Skip to content

Return new toast as a jquery object #13

Open

Description

@liamfl

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

Activity

  1. Script47 commented on Oct 19, 2019

    @Script47
    Owner

    Thanks for the feedback @liamfl.

    What benefits would this bring?

    Just trying to gauge what it might be used for.

  2. rringrose commented on Nov 10, 2021

    @rringrose

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestThis issue is requesting a new feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions