A condition on a column that a row must meet to be in the grid.
op is one of:
:eqand:neq: equal, or not, tovalue;:contains,:not_contains,:starts_withand:ends_with: for text, without case;:gt,:gte,:ltand:lte: greater or less thanvalue;:between: from the first to the second value of a two-item list, both included;:in: one of the values of a list;:is_niland:not_nil: no value, or any value (with novalue).
The value is read for the column's type (see Masu.Column): a date
column takes "2026-10-17" or a Date, a number column "12.5" or
12.5.
Summary
Functions
Checks a filter against the grid's columns and reads its value for the column's type. Returns the filter with the value read, or an error that says why: no such column, a column that does not filter, an operator that is not for its type, or a value it cannot read.
Whether a value meets the filter, as Masu.Source.List checks it. The
filter's value must already be read (cast/2).
A filter on the column with key.
The operators of a filter.
The operators of a filter on a column of type: those of text only for text and enums.
Types
Functions
@spec cast(t(), [Masu.Column.t()]) :: {:ok, t()} | {:error, String.t()}
Checks a filter against the grid's columns and reads its value for the column's type. Returns the filter with the value read, or an error that says why: no such column, a column that does not filter, an operator that is not for its type, or a value it cannot read.
Whether a value meets the filter, as Masu.Source.List checks it. The
filter's value must already be read (cast/2).
A filter on the column with key.
@spec ops() :: [op()]
The operators of a filter.
@spec ops(Masu.Column.type()) :: [op()]
The operators of a filter on a column of type: those of text only for text and enums.