View Source Bonfire.UI.Common.PreviewContentLive (bonfire_umbrella v0.9.8-cooperation-beta.31)

A special 'modal' for previewing objects from a feed without redirecting to a new view (so we can go back to where we were in the feed)

Properties

  • id :string, required: true - The id of the live component (required by LiveView for stateful components).

  • source_inspector_attrs :map, default: %{}

  • title_text :string, default: nil - The title of the modal. Only used if no title slot is passed.

  • title_class :css_class, default: nil - The classes of the title of the modal

  • show :boolean, default: false - Force modal to be open

  • no_header :boolean, default: false - Optional prop to hide the header at the top of the modal

  • modal_class :string, default: nil - The classes of the modal.

  • modal_assigns :any, default: [] - Additional assigns for the modal

  • opts :keyword, default: [] - Additional attributes to add onto the modal wrapper

Slots

  • default, arg: [:autocomplete] - Slots for the contents of the modal, title, buttons...

  • open_btn

  • action_btns

  • cancel_btn

  • title

Summary

Functions

Link to this function

do_handle_event(binary, _, socket)

View Source
Link to this function

handle_event(action, attrs, socket)

View Source

Callback implementation for Phoenix.LiveComponent.handle_event/3.

Link to this function

handle_info(info, socket)

View Source

Callback implementation for Phoenix.LiveComponent.mount/1.

Callback implementation for Phoenix.LiveComponent.render/1.

Link to this macro

sigil_p(route, extra)

View Source (macro)

Callback implementation for Phoenix.LiveComponent.update/2.