I walk through the docs of Phoenix.LiveView.JS in LiveView 0.17.1 Phoenix.LiveView.JS — Phoenix LiveView v0.17.1
I see how I can hide a modal with phx-remove={hide_modal()}
.
But is it possible to trigger the show and hide of a modal with Phoenix.LiveView.JS
from the server or would that be the wrong tool for that? Actually I’d like to trigger the show of the modal on the server and use the client to hide it.