AzureBillingDashboardWeb.LiveHelpers (azure_billing_dashboard v0.2.0)
Link to this section Summary
Link to this section Functions
Link to this function
assign_defaults(session, socket)
Link to this function
modal(assigns)
Renders a live component inside a modal.
The rendered modal receives a :return_to option to properly update
the URL when the modal is closed.
examples
Examples
<.modal return_to={Routes.virtual_machine_index_path(@socket, :index)}>
<.live_component
module={AzureBillingDashboardWeb.VirtualMachineLive.FormComponent}
id={@virtual_machine.id || :new}
title={@page_title}
action={@live_action}
return_to={Routes.virtual_machine_index_path(@socket, :index)}
virtual_machine: @virtual_machine
/>
</.modal>