A field for handling a time value.
Field-specific options
See Backpex.Field for general field options.
:format- Format string which will be used to format the time value or function that formats the time.Can also be a function which receives a
Timeand must return a string. Empty (nil) values are rendered as "—" and never passed to the function.The default value is
"%I:%M %p".:debounce- Timeout value (in milliseconds), "blur" or function that receives the assigns.:throttle- Timeout value (in milliseconds) or function that receives the assigns.
Examples
@impl Backpex.LiveResource
def fields do
[
created_at: %{
module: Backpex.Fields.Time,
label: "Deliver By",
format: "%I:%M %p"
}
]
end
Summary
Functions
Returns the schema of configurable options for this field.