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
errorMessagestring
Properties
ErrorMessage
public string ErrorMessage { get; }
Property Value
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
Methods
Render(EditorBase)
public abstract void Render(EditorBase editor)
Parameters
editorEditorBase
Validate(object?)
public abstract bool Validate(object? value)
Parameters
valueobject