Interface FormElementAttributes

All Known Implementing Classes:
InputDateFormElement, InputDateTimeLocalFormElement, InputEmailFormElement, InputNumberFormElement, InputPasswordFormElement, InputTelFormElement, InputTextFormElement, InputTimeFormElement, InputUrlFormElement, SelectFormElement, TextareaFormElement, TrixEditorFormElement

public interface FormElementAttributes
HTML Form Element Attributes.
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
    • label

      @Nullable @Nullable Message label()
      Returns:
      represents a caption for an item in a user interface
    • errors

      @NonNull @NonNull List<Message> errors()
      Returns:
      Form element validation Errors.
    • hasErrors

      default boolean hasErrors()
      Returns:
      Whether the form element has validation errors