SlopUI.JS (SlopUI v0.1.0)

Copy Markdown View Source

Phoenix.LiveView.JS helpers for driving SlopUI components from the client without a server round trip.

<.button phx-click={SlopJS.open_dialog("#confirm")}>Delete</.button>

Summary

Functions

Closes the dialog matched by selector.

Opens the dialog matched by selector.

Toggles the dialog matched by selector.

Functions

close_dialog(js \\ %JS{}, selector)

Closes the dialog matched by selector.

open_dialog(js \\ %JS{}, selector)

Opens the dialog matched by selector.

toggle_dialog(js \\ %JS{}, selector)

Toggles the dialog matched by selector.