Table of Contents

Class FilterCondition

Namespace
TwBlazor.Models
Assembly
TwBlazor.dll

One condition of a ColumnFilter, such as "is greater than 100".

[ExcludeFromCodeCoverage]
public sealed class FilterCondition
Inheritance
FilterCondition
Inherited Members

Constructors

FilterCondition()

public FilterCondition()

Properties

IsActive

Gets whether the condition takes part in filtering: it needs no value, or it has one.

public bool IsActive { get; }

Property Value

bool

Operator

Gets or sets how the value is compared with Value.

public FilterOperator Operator { get; set; }

Property Value

FilterOperator

Value

Gets or sets the value to compare with, written the same way in every culture: numbers with a . for the decimal point, dates as yyyy-MM-dd, true or false, and enum values by name. A condition whose operator needs a value is ignored while the value is empty.

public string? Value { get; set; }

Property Value

string

Methods

Clone()

Creates a copy of the condition.

public FilterCondition Clone()

Returns

FilterCondition

A new FilterCondition with the same values.