LiveViewContinuity.Dialog (liveview_continuity v0.8.0)

Copy Markdown View Source

A native modal dialog with server-owned intent and patch-safe browser state.

See DIALOG.md for the observable interaction contract.

Summary

Functions

dialog(assigns)

Attributes

  • id (:string) (required)
  • open (:boolean) (required)
  • on_open (:string) - Defaults to nil.
  • on_close (:string) (required)
  • initial_focus (:string) - Defaults to nil.
  • class (:any) - Defaults to nil.
  • dialog_class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • trigger - Accepts attributes:
    • class (:any)
  • title (required) - Accepts attributes:
    • class (:any)
  • description - Accepts attributes:
    • class (:any)
  • inner_block (required)
  • close (required) - Accepts attributes:
    • class (:any)