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

      @NonNull @NonNull String name()
      Returns:
      Name of the form control. Submitted with the form as part of a name/value pair
    • id

      @Nullable @Nullable String id()
      Returns:
      It defines an identifier (ID) which must be unique in the whole document
    • placeholder

      @Nullable @Nullable String 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

      @Nullable @Nullable Number maxLength()
      Returns:
      The maximum string length that the user can enter into the text input.
    • minLength

      @Nullable @Nullable Number minLength()
      Returns:
      The minimum string length that the user can enter into the text input.
    • pattern

      @Nullable @Nullable String 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

      @Nullable @Nullable Integer size()
      Returns:
      The size attribute is a numeric value indicating how many characters wide the input field should be.
    • value

      @Nullable @Nullable String value()
      Returns:
      the input value
    • label

      @Nullable @Nullable Message label()
      Returns:
      message for an HTML Label element.
    • errors

      @NonNull @NonNull List<Message> errors()
      Returns:
      Input Errors