netceteragroup/valdr

Can we add constraints dynamically for input to input ?

Opened this issue · 0 comments

Let's say I have implemented form with custom components then I want validations to be added as part for the component if i did not added the my-input then those validations will not be added and if add them those have to be added dynamically any idea?

<form>
 <my-input1></my-input1>
 <my-select></my-select>
 </form>

work around!
If the getConstraints is available then we can modify the constraints easily