PhoenixFilament.Table.Filter (PhoenixFilament v0.1.0)

Copy Markdown View Source

Represents a table filter declaration. Types: :select, :boolean, :date_range.

The composition field (:and | :or) is reserved for future use. Currently all filters are composed with AND logic.

Summary

Types

t()

@type t() :: %PhoenixFilament.Table.Filter{
  composition: :and | :or,
  field: atom(),
  label: String.t() | nil,
  options: list() | nil,
  type: :select | :boolean | :date_range
}