You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Phoenix on web, it's possible to add a data-confirm="..." attribute to clickable elements. When the element is clicked, Phoenix will first show a browser confirmation dialog with the confirmation message. If the user clicks "Cancel", then the click event is interrupted. A similar feature in LVN would be a nice convenience for confirming destructive user actions.
In Phoenix on web, it's possible to add a
data-confirm="..."
attribute to clickable elements. When the element is clicked, Phoenix will first show a browser confirmation dialog with the confirmation message. If the user clicks "Cancel", then the click event is interrupted. A similar feature in LVN would be a nice convenience for confirming destructive user actions.Implementation in
phoenix_html.js
Phoenix also supports overriding the default behavior for showing a custom dialog: documentation on hexdocs.
The text was updated successfully, but these errors were encountered: