FilterField
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Immutable field metadata reusable by query and filter editors.
- C#
- VB.NET
public sealed class FilterField
Public NotInheritable 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
FilterField(name, text, type, choices)
Creates reusable, immutable field metadata.
| Name | Type | Description |
|---|---|---|
| name | String | Unique, nonempty field key. |
| text | String | Display caption. |
| type | FilterFieldType | Editor data type. |
| choices | String[] | Allowed values for Choice fields. |
Properties
Choices
ReadOnlyCollection<String>: Gets immutable allowed values for a choice field.
Name
String: Gets the stable field key.
Text
String: Gets the display caption.
Type
FilterFieldType: Gets the editor data type.