View Source Beacon.Content.LiveDataAssign (Beacon v0.3.3)

Dynamic key/value assigns to be used by Beacon.Content.Page templates and updated with Beacon.Content.EventHandlers.

LiveDataAssigns don't exist on their own, but exist as part of a Beacon.Content.LiveData struct.

Do not create or edit live data manually

Use the public functions in Beacon.Content instead. The functions in that module guarantee that all dependencies are created correctly and all processes are updated. Manipulating data manually will most likely result in inconsistent behavior and crashes.

Summary

Types

t()

@type t() :: %Beacon.Content.LiveDataAssign{
  __meta__: term(),
  format: :text | :elixir,
  id: Ecto.UUID.t(),
  inserted_at: term(),
  key: String.t(),
  live_data: Beacon.Content.LiveData.t(),
  live_data_id: Ecto.UUID.t(),
  updated_at: term(),
  value: String.t()
}

Functions

changeset(live_data_assign, attrs)

formats()