View Source Bonfire.UI.Common.PreviewContentLive (Bonfire v0.9.10-classic-beta.169)

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

  • extra_contents

Summary

Functions

Link to this function

handle_event(event, params, socket)

View Source

Callback implementation for Phoenix.LiveComponent.handle_event/3.

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.