Class CriterionModel
The resolved, ready-to-render form of a CriterionSpec: the input widget, its serialised value and the predicate it contributes to a query. Consumed by EntityCriteriaView<T>; the search analog of FieldModel and ColumnModel.
public sealed class CriterionModel : INotifyValueChanged
- Inheritance
-
CriterionModel
- Implements
- Inherited Members
Constructors
CriterionModel(IValue<string?>, IPredicateFactory, RenderFragment<Parameters>, string, PredicateResult)
public CriterionModel(IValue<string?> serialisedValue, IPredicateFactory predicateFactory, RenderFragment<CriterionModel.Parameters> component, string label, PredicateResult visibility)
Parameters
serialisedValueIValue<string>predicateFactoryIPredicateFactorycomponentRenderFragment<CriterionModel.Parameters>labelstringvisibilityPredicateResult
Fields
Component
public readonly RenderFragment<CriterionModel.Parameters> Component
Field Value
Label
public readonly string Label
Field Value
Visibility
public readonly PredicateResult Visibility
Field Value
Properties
IsVisible
public bool IsVisible { get; }
Property Value
Methods
Apply<T>(ICriteriaTree<T>)
public ICriteriaTree<T> Apply<T>(ICriteriaTree<T> tree)
Parameters
treeICriteriaTree<T>
Returns
Type Parameters
T
Parse(string)
public void Parse(string value)
Parameters
valuestring
Reset()
public void Reset()
Serialise()
public string? Serialise()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Events
ValueChanged
public event EventHandler? ValueChanged