AshBackpex.LiveResource.Dsl.Filter (Ash Backpex v0.1.2)

View Source

Internal struct representing a filter configuration in the AshBackpex DSL.

This struct holds the configuration for a single filter in the filters section of a backpex block.

Fields

  • :attribute - The Ash attribute to filter on (required)
  • :module - Filter module implementing the filter behavior (optional, auto-derived)
  • :label - Display label for the filter (optional, defaults to title-cased attribute)
  • :options - Options for Select/MultiSelect filters (optional, list or 1-arity function)
  • :prompt - Prompt text for empty selection (optional, string)
  • :type - Type hint for Range filter: :number, :date, :datetime (optional, auto-derived)

See AshBackpex.LiveResource.Dsl for filter configuration options.