open-wc / form-participation

Helper, mixins, tools, and more for supporting your custom elements in participating in an ancestor form.
MIT License
53 stars 7 forks source link

Internal Input validators #21

Closed michaelwarren1106 closed 2 years ago

michaelwarren1106 commented 2 years ago

Added a generator function that creates a validator for each ValidityState key that passes the same ValidityState key value from an expected internal input (validationTarget) up to the host element's validity. The generator function also accepts an object of custom error messages to override our defaults.