Skip to main content
Version: 4.2

FilterField

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Immutable field metadata reusable by query and filter editors.

public sealed class FilterField

Replace the collection entry to change metadata. Name is a stable identifier, while Text is its display caption. Choice strings are both keys and captions.

Example:

builder.Fields.Add(new FilterField("Status", "Status", FilterFieldType.Choice,
new[] { "Healthy", "Critical" }));

Constructors​

Instance member FilterField(name, text, type, choices)​

Creates reusable, immutable field metadata.

NameTypeDescription
nameStringUnique, nonempty field key.
textStringDisplay caption.
typeFilterFieldTypeEditor data type.
choicesString[]Allowed values for Choice fields.

Properties​

Instance member Choices​

ReadOnlyCollection<String>: Gets immutable allowed values for a choice field.

Instance member Name​

String: Gets the stable field key.

Instance member Text​

String: Gets the display caption.

Instance member Type​

FilterFieldType: Gets the editor data type.