Record Class InputUrlFormElement

java.lang.Object
java.lang.Record
io.micronaut.views.fields.elements.InputUrlFormElement
Record Components:
name - Name of the form control. Submitted with the form as part of a name/value pair
id - It defines an identifier (ID) which must be unique in the whole document
placeholder - 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 - If true indicates that the user must specify a value for the input before the owning form can be submitted.
readOnly - A Boolean attribute which, if present, means this field cannot be edited by the user.
maxLength - The maximum string length that the user can enter into the text input.
minLength - The minimum string length that the user can enter into the text input.
pattern - The pattern attribute, when specified, is a regular expression that the input's value must match for the value to pass constraint validation.
size - The size attribute is a numeric value indicating how many characters wide the input field should be.
value - input url value
label - the input label
errors - errors associated with this input
All Implemented Interfaces:
FormElementAttributes, GlobalAttributes, InputFormElement, InputStringFormElement, FormElement

@Introspected(builder=@IntrospectionBuilder(builderClass=Builder.class)) public record InputUrlFormElement(@NonNull String name, @Nullable String id, @Nullable String placeholder, boolean required, boolean readOnly, @Nullable Number maxLength, @Nullable Number minLength, @Nullable String pattern, @Nullable Integer size, @Nullable String value, @Nullable Message label, @NonNull List<Message> errors) extends Record implements InputFormElement, GlobalAttributes, FormElementAttributes, InputStringFormElement
See Also:
  • Constructor Details

    • InputUrlFormElement

      public InputUrlFormElement(@NonNull @NonNull String name, @Nullable @Nullable String id, @Nullable @Nullable String placeholder, boolean required, boolean readOnly, @Nullable @Nullable Number maxLength, @Nullable @Nullable Number minLength, @Nullable @Nullable String pattern, @Nullable @Nullable Integer size, @Nullable @Nullable String value, @Nullable @Nullable Message label, @NonNull @NonNull List<Message> errors)
      Creates an instance of a InputUrlFormElement record class.
      Parameters:
      name - the value for the name record component
      id - the value for the id record component
      placeholder - the value for the placeholder record component
      required - the value for the required record component
      readOnly - the value for the readOnly record component
      maxLength - the value for the maxLength record component
      minLength - the value for the minLength record component
      pattern - the value for the pattern record component
      size - the value for the size record component
      value - the value for the value record component
      label - the value for the label record component
      errors - the value for the errors record component
  • Method Details