SelectoComponents.ExportedViews.EmbedLive (selecto_components v0.4.5)
Wrapper functions for serving an exported iframe view from a host app LiveView.
Usage:
defmodule MyAppWeb.ExportedViewLive do
use MyAppWeb, :live_view
def mount(params, session, socket) do
SelectoComponents.ExportedViews.EmbedLive.mount(
params,
session,
socket,
adapter: MyApp.ExportedViews,
endpoint: MyAppWeb.Endpoint
)
end
def handle_info(msg, socket) do
SelectoComponents.ExportedViews.EmbedLive.handle_info(msg, socket)
end
def handle_event(event, params, socket) do
SelectoComponents.ExportedViews.EmbedLive.handle_event(event, params, socket)
end
def render(assigns) do
SelectoComponents.ExportedViews.EmbedLive.render(assigns)
end
end
Link to this section Summary
Link to this section Functions
Link to this function
handle_event(event, params, socket)
Link to this function
handle_info(arg1, socket)
Link to this function
mount(params, session, socket, opts)
Link to this function