ZWeb.Components.LiveHelpers (Portico/Z v0.1.0)
Reusable component invocation for ZWeb
These component functions are automatically imported into ZWeb
live views.
Link to this section Summary
Functions
Renders a component inside the ZWeb.Components.Modal
component.
Render a nav header with "breadcrumbs" on the left, and actions on the right.
Link to this section Functions
Link to this function
live_modal(component, opts)
Renders a component inside the ZWeb.Components.Modal
component.
The rendered modal receives a :return_to
option to properly update
the URL when the modal is closed.
Examples
<%= live_modal ZWeb.Events.FormComponent,
id: @event.id || :new,
action: @live_action,
event: @event,
return_to: Routes.event_index_path(@socket, :index) %>