Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How is validation achieved? #132

Closed
mrpmorris opened this issue Jun 12, 2023 · 2 comments
Closed

Question: How is validation achieved? #132

mrpmorris opened this issue Jun 12, 2023 · 2 comments

Comments

@mrpmorris
Copy link

I don't seem to be able to use EditForm etc.

@Dreamescaper
Copy link
Owner

You're right, you can't use EditForm, as it is targeted specifically for web. It is possible to create an alternative though.
There is a POC in this PR, but the code is really outdated there.

There is no built-in support, as I wasn't able to figure out a universal way to make it work with built-in and third-party elements, which already provide some validation mechanisms.

I'll try to built a sample demonstrating that soonish though.

@Dreamescaper
Copy link
Owner

I've added a small sample with an example how you can achieve that:
https://github.com/Dreamescaper/BlazorBindings.Maui/blob/main/samples/ValidationsSample/LoginPage.razor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants