Represents an active filter instance with a unique ID, field, operator, value, and config reference.
Summary
Functions
Creates a new Filter from a FilterConfig, using the config's default operator and nil value.
Creates a new Filter from a FilterConfig with a specific operator and value.
Types
@type t() :: %LiveFilter.Filter{ config: LiveFilter.FilterConfig.t(), field: atom(), id: String.t(), operator: LiveFilter.Types.operator(), value: LiveFilter.Types.filter_value() }
Functions
@spec new(LiveFilter.FilterConfig.t()) :: t()
Creates a new Filter from a FilterConfig, using the config's default operator and nil value.
@spec new( LiveFilter.FilterConfig.t(), LiveFilter.Types.operator(), LiveFilter.Types.filter_value() ) :: t()
Creates a new Filter from a FilterConfig with a specific operator and value.