PainWeb.Components.Service (pain v0.1.0)

Copy Markdown

Properties

  • id :string, required: true - The id of the live component (required by LiveView for stateful components).

  • service :any, required: true

  • chosen :map

  • number :integer, default: 1

Events

  • choose

Summary

Functions

mount(socket)

Callback implementation for Phoenix.LiveComponent.mount/1.

render(assigns)

Callback implementation for Phoenix.LiveComponent.render/1.

update(assigns, socket)

Callback implementation for Phoenix.LiveComponent.update/2.