Use the following code to create a basic inputEx field.
You can set a default value by specifying the 'value' property in the options object.
You can set the size of the input.
You can add a maximum/minimum length on string fields :
If the 'required' property is set, the 'validate' method will return false if the field is empty. In a form, the 'validate' method will be called on each field and will return false if at least one field doesn't validate.
Here is an example on how to check the value with a regular expression. (It is better to use the IntegerField, but this is a simple example.)
The basic Field class can use regular expressions to validate the field content. Here is an example with this wonderful email regular expression (note that there is an Email Field class).
You can call the methods 'disable' or 'enable' to set the state of the field.
How to listen to the updated event :
Display a text when the field is empty.
Config with various options : typeInvite, required, minLength, trim -- Test setValue and getValue methods
Use the focus method