live_toast
live_toast copied to clipboard
Support for JS
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")
Yes, @RodolfoSilva if you'd like to pull my brainch in #33 and test it in your use case I would really appreciate it. Someone else testing would give me a lot more confidence that it's ready to send out.