Table of Contents

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

FieldType

FilterFunction

The function which performs the filter.

public Func<T, bool>? FilterFunction { get; set; }

Property Value

Func<T, bool>

Id

public Guid Id { get; set; }

Property Value

Guid

Operator

public string? Operator { get; set; }

Property Value

string

Title

public string? Title { get; set; }

Property Value

string

Value

public object? Value { get; set; }

Property Value

object

Methods

Clone()

public IFilterDefinition<T> Clone()

Returns

IFilterDefinition<T>

GenerateFilterFunction(FilterOptions?)

Generates a function which performs the filter.

public Func<T, bool> GenerateFilterFunction(FilterOptions? filterOptions = null)

Parameters

filterOptions FilterOptions

Any options for generation, such as case sensitivity.

Returns

Func<T, bool>

A function which performs the filter.