View Source Beacon.Content.ComponentAttr (Beacon v0.2.1)

Beacon's representation of Phoenix's Component attributes.

ComponentAttrs don't exist on their own, but always belong to a Beacon.Content.Component.

Do not create or edit component attrs 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

@type t() :: %Beacon.Content.ComponentAttr{
  __meta__: term(),
  component: term(),
  component_id: term(),
  id: term(),
  inserted_at: term(),
  name: term(),
  opts: term(),
  struct_name: term(),
  type: term(),
  updated_at: term()
}