Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Provide alternative to EditForm components for native controls for validation #233

@Dreamescaper

Description

@Dreamescaper

I would love to be able to use same validations techniques as in Web Blazor, with DataAnnotationsValidator or third-party FluentValidator.

I'd expect it to be something like that:

<CascadedEditContext Model="@MyModel"> 
	<DataAnnotationsValidator /> 
	# or
	<FluentValidator />

	<ValidatedEntry @bind-Text="@Model.Username" />
	<ValidationLabel For="@Model.Username" />
	
	<ValidatedEntry @bind-Text="@Model.Password" />
	<ValidationLabel For="@Model.Password" />
	
	<SubmitButton OnValidSubmit="@Login" />
<CascadedEditContext />

Those controls should probably go to separate project, e.g. Microsoft.MobileBlazorBindings.Forms or Microsoft.MobileBlazorBindings.Validation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions