View Source Backpex.Fields.Date (Backpex v0.6.0)
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), "blur" or function that receives the assigns.:throttle
- Optional integer timeout value (in milliseconds) or function that receives the assigns.
Example
@impl Backpex.LiveResource
def fields do
[
created_at: %{
module: Backpex.Fields.Date,
label: "Created At",
format: "%d.%m.%Y"
}
]
end