Skip to content

ValidationMessageWidget ​

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

Displays validation error messages for one or more form fields. Place this widget inside a Form builder to show aggregated validation messages.

csharp
public sealed record ValidationMessageWidget : Hex1bWidget, IEquatable<Hex1bWidget>, IEquatable<ValidationMessageWidget>

Inheritance ​

Object → Hex1bWidget → ValidationMessageWidget

Implements ​

Constructors ​

ValidationMessageWidget(IReadOnlyList<string>) ​

Parameters:

csharp
public ValidationMessageWidget(IReadOnlyList<string> fieldIds)

Remarks ​

Use form.ValidationMessageFor(field1, field2) to create this widget. It shows the first error message from the specified fields, styled with the theme element.

Released under the MIT License.