Table of Contents

Class RequiredDefinition

Namespace
Dynamicweb.CoreUI.Data.Validation
Assembly
Dynamicweb.CoreUI.dll
public sealed class RequiredDefinition : ValidationDefinition
Inheritance
RequiredDefinition
Inherited Members

Constructors

RequiredDefinition()

public RequiredDefinition()

RequiredDefinition(string?)

public RequiredDefinition(string? errorMessage)

Parameters

errorMessage string

Properties

ValidityStateReason

The native HTML ValidityState property (e.g. "patternMismatch", "tooLong") this validation corresponds to, if any. Used to pick the right message client-side against the browser's live validity state instead of a value snapshotted at render time. Defaults to null so existing third-party subclasses keep compiling unchanged.

public override string ValidityStateReason { get; }

Property Value

string

Methods

Render(EditorBase)

public override void Render(EditorBase editor)

Parameters

editor EditorBase

Validate(object?)

public override bool Validate(object? value)

Parameters

value object

Returns

bool
To top