I was working with a special requirement and I feel there should be a way to set the error messages for the field.
The reason is some validators are validating the model like username already exists in the database, and it will be nice if we can set the error messages to the corresponding field name.
I will work on both the Aura.Input and Aura.Filter to have a method setMessages($field = null) .
I was working with a special requirement and I feel there should be a way to set the error messages for the field.
The reason is some validators are validating the model like username already exists in the database, and it will be nice if we can set the error messages to the corresponding field name.
I will work on both the
Aura.Input
andAura.Filter
to have a methodsetMessages($field = null)
.What do you think? Go with it ?