Replies: 2 comments 2 replies
-
Check this #1722 |
Beta Was this translation helpful? Give feedback.
-
What if I have multiple validations I need to validate multiple components in a subcomponent? I just successfully implemented a component with a single validation like #1722 but I'm not seeing how that works for multiple field validations in the sub-component. ` I tried but I wasn't sure how that should work with my use of a custom component inside of that. Some examples of this in samples might be helpful. |
Beta Was this translation helpful? Give feedback.
-
I have a component based on TextEdit, I would like to use validation on this component. It uses Validations with a Model, however when doing the ValidateAll it won't work. Looks something like this:
------------------- MyTextEdit -----------
------------ Course.cs ----------
Is there a way to pass the Model to the component so that it knows what to use for the Validation ? If I use a ValidatorRule then it works just fine. When I pass the entire class as parameter and use course.Name in the component it also works but this would required a component for each field. I'm hoping i can somehow pass the class.property.
Beta Was this translation helpful? Give feedback.
All reactions