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

Add support for MVVM #14

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Add support for MVVM #14

wants to merge 4 commits into from

Conversation

Xioshock
Copy link

@Xioshock Xioshock commented Apr 3, 2023

This adds a new property wrapper @PublishedValidated, that can be used inside ViewModel. The usage is a bit different, since we can't access the projected value of Validated from View.

Feel free to change it or refactor it

@Xioshock
Copy link
Author

Xioshock commented Apr 4, 2023

I also added support for custom error messages, which are needed mostly when you have more than 1 validation rule. Which is very common.

@bsalves
Copy link

bsalves commented Sep 13, 2023

@SvenTiigi is it ok? It saved me a lot hahaha.

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

Successfully merging this pull request may close these issues.

2 participants