Filtrex v0.1.0 Filtrex.Condition.Text

Filtrex.Condition.Text is a specific condition type for handling text filters with various comparisons.

It accepts the following format (where inverse is passed directly from Filtrex.Condition):

%{
  inverse: boolean,
  column: string,
  comparator: string,  # equals, is, is not, contains, does not contain
  value: string,
  type: "text"
}

Summary

Functions

Tries to create a valid text condition struct, calling helper methods from Filtrex.Condition to validate each type. If any of the types are not valid, it accumulates the errors and returns them

Types

Functions

parse(config, map)

Tries to create a valid text condition struct, calling helper methods from Filtrex.Condition to validate each type. If any of the types are not valid, it accumulates the errors and returns them.