View Source ClaperWeb.LiveHelpers (Claper v1.4.0)
Link to this section Summary
Functions
Renders a component inside the ClaperWeb.ModalComponent
component.
Link to this section Functions
Renders a component inside the ClaperWeb.ModalComponent
component.
The rendered modal receives a :return_to
option to properly update
the URL when the modal is closed.
examples
Examples
<%= live_modal ClaperWeb.PostLive.FormComponent,
id: @post.id || :new,
action: @live_action,
post: @post,
return_to: Routes.post_index_path(@socket, :index) %>