View Source Backpex.Fields.Date (Backpex v0.1.1)

A field for handling a date value.

Options

  • :format - Defines the date format printed on the index view. Defaults to %Y-%m-%d.
  • :debounce - Optional integer timeout value (in milliseconds), or "blur".
  • :throttle - Optional integer timeout value (in milliseconds).

Example

@impl Backpex.LiveResource
def fields do
  [
    created_at: %{
      module: Backpex.Fields.Date,
      label: "Created At",
      format: "%d.%m.%Y"
    }
  ]
end