View Source Philtre.UI.Page (philtre v0.10.2)

Shared component used for both creation and editing of an article.

Link to this section Summary

Link to this section Functions

Link to this function

handle_event(binary, params, socket)

View Source
@spec handle_event(String.t(), map(), Phoenix.LiveView.Socket.t()) ::
  {:noreply, Phoenix.LiveView.Socket.t()}

Callback implementation for Phoenix.LiveComponent.handle_event/3.

Callback implementation for Phoenix.LiveComponent.render/1.

Link to this function

update(updated_assigns, socket)

View Source
@spec update(%{optional(:editor) => Philtre.Editor.t()}, Phoenix.LiveView.Socket.t()) ::
  {:ok, Phoenix.LiveView.Socket.t()}

Callback implementation for Phoenix.LiveComponent.update/2.