Beacon.LiveAdmin.StationUI.HTML.Modal (Beacon LiveAdmin v0.4.0)

View Source

Summary

Functions

The modals component renders a block of content that displays on top of the page. The modal can be dismissed by clicking on the close button or hitting ESC on the keyboard.

Functions

hide_modal(js \\ %JS{}, id)

modal(assigns)

The modals component renders a block of content that displays on top of the page. The modal can be dismissed by clicking on the close button or hitting ESC on the keyboard.

Attributes

  • id (:string) (required)
  • size (:string) - Defaults to "md".
  • show (:boolean) - Defaults to false.
  • show_backdrop (:boolean) - Defaults to true.
  • on_cancel (Phoenix.LiveView.JS) - Defaults to %Phoenix.LiveView.JS{ops: []}.

Slots

  • inner_block (required)
  • title
  • subtitle
  • footer - Accepts attributes:
    • variant (:string) - Must be one of "right", "justified", "full", or "stacked".

show_modal(js \\ %JS{}, id)