View Source Bonfire.UI.Common.LikeActionLive (bonfire v0.3.5-classic-beta.10)

properties

Properties

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

  • object :any

  • like_count :any, default: 0

Link to this section Summary

Link to this section Functions

Link to this function

handle_event(action, attrs, socket)

View Source

Callback implementation for Phoenix.LiveComponent.handle_event/3.

Callback implementation for Phoenix.LiveComponent.mount/1.

Link to this function

preload(list_of_assigns)

View Source

Callback implementation for Phoenix.LiveComponent.preload/1.

Callback implementation for Phoenix.LiveComponent.render/1.

Callback implementation for Phoenix.LiveComponent.update/2.