Best way to Wrap or Extend HxInputText for Validation? #807
Replies: 2 comments 3 replies
-
When dealing with such requirements, you'll need to implement your own Check out the default implementation of rendering at https://github.com/havit/Havit.Blazor/blob/master/Havit.Blazor.Components.Web.Bootstrap/Forms/Internal/HxFormValueRenderer.cs and https://github.com/havit/Havit.Blazor/blob/master/Havit.Blazor.Components.Web.Bootstrap/Forms/Internal/HxFormValueComponentRenderer.cs. |
Beta Was this translation helpful? Give feedback.
-
(We can implement such renderer for you as part of our commercial support. Let me know if you are interested in such option.) |
Beta Was this translation helpful? Give feedback.
-
Hi
None of the validations that come out of the box for input validation works for my use case. I am stuck with using the custom validation, but the validation I need to use needs to be on every control like
As you can see, I want the Validation Message to be above the Input Text instead of under it.
If I need to do 10 of these, that will be a lot of copying and pasting. I was thinking of wrapping it into a component, but I am not sure how to make it, so I can still pass in all the parameters that can be set on an HxInputText
Beta Was this translation helpful? Give feedback.
All reactions