Index Edit
View SourceA small number of fields support index editable. These fields can be edited inline on the index view.
Configuration
To enable index editable for a field, you need to set the index_editable option to true in the field configuration.
# in your resource configuration file
def fields do
[
name: %{
module: Backpex.Fields.Text,
label: "Name",
index_editable: true
}
]
endThe example above will enable index editable for the name text field.
Supported fields
Backpex.Fields.BelongsToBackpex.Fields.DateBackpex.Fields.DateTimeBackpex.Fields.EmailBackpex.Fields.NumberBackpex.Fields.SelectBackpex.Fields.Text
Custom index editable implementation
You can add index editable support to your custom fields by defining the render_index_form/1 function and enabling index editable for your field.