Skip to content

Support for JS #44

Description

@RodolfoSilva

Sometimes, we need to display a toast on the client side. Will this be possible with live toast? Something like: LiveToast.JS.put_toast

JS.dispatch("to_clipboard", to: "#foo")
|> LiveToast.JS.put_toast(:info, "Data copied to the clipboard.")
|> JS.hide(to: "#modal")

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions