Simple wrapper for javascript constraint error messages.
It should satisfy very simple forms.
- Ember.js v3.16 or above
- Ember CLI v2.13 or above
- Node.js v10 or above
ember install ember-error-for
It renders a span tag with [hidden]
attribute set.
Now instead of getting the default browser error message bubble, it will render the error inline.
All possible validations related attributes can be found here.
You can override error messages by passing in one of the ValidityState properties.
e.g.
- Add more tests
See the Contributing guide for details.
This project is licensed under the MIT License.