Backpex.Fields.Select (Backpex v0.16.1)
View SourceA field for handling a select value.
Field-specific options
See Backpex.Field for general field options.
:options- Required. List of options or function that receives the assigns.:prompt- The text to be displayed when no option is selected or function that receives the assigns.:debounce- Timeout value (in milliseconds), "blur" or function that receives the assigns.:throttle- Timeout value (in milliseconds) or function that receives the assigns.
Example
@impl Backpex.LiveResource
def fields do
[
role: %{
module: Backpex.Fields.Select,
label: "Role",
options: [Admin: admin, User: user]
}
]
end
Summary
Functions
Returns the schema of configurable options for this field.