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

Beacon's representation of Phoenix Components, which can be used and re-used in your pages and layouts.

Do not create or edit components 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.Component{
  __meta__: term(),
  attrs: term(),
  body: term(),
  category: term(),
  description: term(),
  example: term(),
  id: term(),
  inserted_at: term(),
  name: term(),
  site: term(),
  slots: term(),
  template: term(),
  thumbnail: term(),
  updated_at: term()
}

Functions

categories()