Class MaximumLengthDefinition
- Namespace
- Dynamicweb.CoreUI.Data.Validation
- Assembly
- Dynamicweb.CoreUI.dll
public sealed class MaximumLengthDefinition : ValidationDefinition
- Inheritance
-
MaximumLengthDefinition
- Inherited Members
Constructors
MaximumLengthDefinition(int)
public MaximumLengthDefinition(int length)
Parameters
lengthint
MaximumLengthDefinition(int, string?)
public MaximumLengthDefinition(int length, string? errorMessage)
Parameters
Properties
Length
public int Length { 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 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