View Source AdminElf.TableHelpers (admin_elf v1.1.0)

Summary

Types

@type column() :: %{
  type: AdminElf.FieldHelpers.field_type(),
  name: atom(),
  label: String.t(),
  value: (term() -> term()),
  link: (term() -> term()) | nil,
  referenced_resource_id: any(),
  order: atom()
}

Functions

Link to this function

boolean_column(name, opts \\ [])

View Source
@spec boolean_column(
  atom(),
  keyword()
) :: column()
Link to this function

date_column(name, opts \\ [])

View Source
@spec date_column(
  atom(),
  keyword()
) :: column()
Link to this function

number_column(name, opts \\ [])

View Source
@spec number_column(
  atom(),
  keyword()
) :: column()
Link to this function

reference_column(name, referenced_resource_id, opts \\ [])

View Source
@spec reference_column(
  atom(),
  [atom()],
  keyword()
) :: column()
Link to this function

text_column(name, opts \\ [])

View Source
@spec text_column(
  atom(),
  keyword()
) :: column()