Table of Contents

Class ValidationDefinition

Namespace
Dynamicweb.CoreUI.Data.Validation
Assembly
Dynamicweb.CoreUI.dll
public abstract class ValidationDefinition
Inheritance
ValidationDefinition
Derived
Inherited Members

Constructors

ValidationDefinition(string)

protected ValidationDefinition(string errorMessage)

Parameters

errorMessage string

Properties

ErrorMessage

public string ErrorMessage { get; }

Property Value

string

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 virtual string? ValidityStateReason { get; }

Property Value

string

Methods

Render(EditorBase)

public abstract void Render(EditorBase editor)

Parameters

editor EditorBase

Validate(object?)

public abstract bool Validate(object? value)

Parameters

value object

Returns

bool
To top