Class
ValidationSettings

Definition

Constructors

ValidationSettings()

Declaration

cs-api-definition
protected ValidationSettings()

Properties

Enabled

Controls whether automatic validation is active for form fields and editing operations. Set to false to disable built-in validation entirely. Default value is true (validation enabled).

Declaration

cs-api-definition
[Parameter]
public bool Enabled { get; set; }

Property Value

bool

ValidatorTemplate

Provides a custom validation component to replace the default DataAnnotationsValidator. Use this to integrate third-party validation libraries. Children: Custom validator component that implements validation logic.

Declaration

cs-api-definition
[Parameter]
public RenderFragment ValidatorTemplate { get; set; }

Property Value

RenderFragment

Methods

OnInitializedAsync()

Declaration

cs-api-definition
protected override Task OnInitializedAsync()

Returns

Task

Overrides ComponentBase.OnInitializedAsync()