Interface InputStringFormElement
- All Known Implementing Classes:
InputEmailFormElement
,InputPasswordFormElement
,InputTelFormElement
,InputTextFormElement
,InputUrlFormElement
public interface InputStringFormElement
API for html input of type string. e.g. input type text, password, url, tel.
- Since:
- 4.1.0
- Author:
- Sergio del Amo
-
Method Details
-
name
- Returns:
- Name of the form control. Submitted with the form as part of a name/value pair
-
id
- Returns:
- It defines an identifier (ID) which must be unique in the whole document
-
placeholder
- Returns:
- The placeholder attribute is a string that provides a brief hint to the user as to what kind of information is expected in the field.
-
required
boolean required()- Returns:
- If true indicates that the user must specify a value for the input before the owning form can be submitted.
-
readOnly
boolean readOnly()- Returns:
- A Boolean attribute which, if present, means this field cannot be edited by the user.
-
maxLength
- Returns:
- The maximum string length that the user can enter into the text input.
-
minLength
- Returns:
- The minimum string length that the user can enter into the text input.
-
pattern
- Returns:
- The pattern attribute, when specified, is a regular expression that the input's value must match for the value to pass constraint validation.
-
size
- Returns:
- The size attribute is a numeric value indicating how many characters wide the input field should be.
-
value
- Returns:
- the input value
-
label
- Returns:
- message for an HTML Label element.
-
errors
- Returns:
- Input Errors
-