View Source Backpex.Fields.DateTime (Backpex v0.1.1)
A field for handling a date time value.
Options
:format
- Format string which will be used to format the date time value. Defaults to%Y-%m-%d %I:%M %p
: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.DateTime,
label: "Created At",
format: "%Y.%m.%d %I:%M %p" # optional
}
]
end