ClientValidationProvider.RenderClientValidationRules Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a RenderFragment that renders the client-side validation rules for
the form's rendered fields, or null when no client-side validation data
applies (for example when none of the rendered fields are validated on the server).
public abstract Microsoft.AspNetCore.Components.RenderFragment? RenderClientValidationRules(Microsoft.AspNetCore.Components.Forms.EditContext editContext, System.Collections.Generic.IReadOnlyDictionary<Microsoft.AspNetCore.Components.Forms.FieldIdentifier,string> renderedFields);
abstract member RenderClientValidationRules : Microsoft.AspNetCore.Components.Forms.EditContext * System.Collections.Generic.IReadOnlyDictionary<Microsoft.AspNetCore.Components.Forms.FieldIdentifier, string> -> Microsoft.AspNetCore.Components.RenderFragment
Public MustOverride Function RenderClientValidationRules (editContext As EditContext, renderedFields As IReadOnlyDictionary(Of FieldIdentifier, String)) As RenderFragment
Parameters
- editContext
- EditContext
The EditContext of the form being rendered.
- renderedFields
- IReadOnlyDictionary<FieldIdentifier,String>
The fields an input was rendered for, keyed by FieldIdentifier with the
rendered HTML name as the value. Implementations build client-side rules only for
these fields.
Returns
A RenderFragment that emits the rules markup, or null when
there is nothing to render.