Class FilterDefinition<T>
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
Represents the logic of a filter applied to MudGrid data.
public class FilterDefinition<T> : IFilterDefinition<T>
Type Parameters
T
The type of object being filtered.
- Inheritance
-
FilterDefinition<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
FilterDefinition()
public FilterDefinition()
Properties
Column
public Column<T>? Column { get; set; }
Property Value
- Column<T>
FieldType
The type of column being filtered.
public FieldType FieldType { get; }
Property Value
FilterFunction
The function which performs the filter.
public Func<T, bool>? FilterFunction { get; set; }
Property Value
Id
public Guid Id { get; set; }
Property Value
Operator
public string? Operator { get; set; }
Property Value
Title
public string? Title { get; set; }
Property Value
Value
public object? Value { get; set; }
Property Value
Methods
Clone()
public IFilterDefinition<T> Clone()
Returns
GenerateFilterFunction(FilterOptions?)
Generates a function which performs the filter.
public Func<T, bool> GenerateFilterFunction(FilterOptions? filterOptions = null)
Parameters
filterOptions
FilterOptionsAny options for generation, such as case sensitivity.