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
errorMessagestring
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
Methods
Render(EditorBase)
public override void Render(EditorBase editor)
Parameters
editorEditorBase
Validate(object?)
public override bool Validate(object? value)
Parameters
valueobject