Record Class FormElementRendererViewsConfiguration

java.lang.Object
java.lang.Record
io.micronaut.views.fields.render.views.FormElementRendererViewsConfiguration
Record Components:
inputCheckbox - The view name for a field of type input checkbox.
inputDate - The view name for a field of type input date.
inputDateTimeLocal - The view name for a field of type input datetime-local.
inputEmail - The view name for a field of type input email.
inputHidden - The view name for a field of type input hidden.
inputNumber - The view name for a field of type input number.
inputPassword - The view name for a field of type input password.
inputRadio - The view name for a field of type input radio.
inputSubmit - The view name for a field of type input submit.
inputTel - The view name for a field of type input tel.
inputText - The view name for a field of type input text.
inputTime - The view name for a field of type input time.
inputUrl - The view name for a field of type input url.
option - The view name to render an option html element.
select - The view name for a field of type select.
textarea - The view name to render a textarea html element.
trixEditor - The view name for a field of type trix-editor.

@ConfigurationProperties("micronaut.views.form-element.render.views") public record FormElementRendererViewsConfiguration(@Nullable String inputCheckbox, @Nullable String inputDate, @Nullable String inputDateTimeLocal, @Nullable String inputEmail, @Nullable String inputHidden, @Nullable String inputNumber, @Nullable String inputPassword, @Nullable String inputRadio, @Nullable String inputSubmit, @Nullable String inputTel, @Nullable String inputText, @Nullable String inputTime, @Nullable String inputUrl, @Nullable String option, @Nullable String select, @Nullable String textarea, @Nullable String trixEditor) extends Record
Configuration for FormElementRenderer based on views.
Since:
4.1.0
Author:
Sergio del Amo
  • Field Details

  • Constructor Details

    • FormElementRendererViewsConfiguration

      public FormElementRendererViewsConfiguration(@Nullable @Nullable String inputCheckbox, @Nullable @Nullable String inputDate, @Nullable @Nullable String inputDateTimeLocal, @Nullable @Nullable String inputEmail, @Nullable @Nullable String inputHidden, @Nullable @Nullable String inputNumber, @Nullable @Nullable String inputPassword, @Nullable @Nullable String inputRadio, @Nullable @Nullable String inputSubmit, @Nullable @Nullable String inputTel, @Nullable @Nullable String inputText, @Nullable @Nullable String inputTime, @Nullable @Nullable String inputUrl, @Nullable @Nullable String option, @Nullable @Nullable String select, @Nullable @Nullable String textarea, @Nullable @Nullable String trixEditor)
      Creates an instance of a FormElementRendererViewsConfiguration record class.
      Parameters:
      inputCheckbox - the value for the inputCheckbox record component
      inputDate - the value for the inputDate record component
      inputDateTimeLocal - the value for the inputDateTimeLocal record component
      inputEmail - the value for the inputEmail record component
      inputHidden - the value for the inputHidden record component
      inputNumber - the value for the inputNumber record component
      inputPassword - the value for the inputPassword record component
      inputRadio - the value for the inputRadio record component
      inputSubmit - the value for the inputSubmit record component
      inputTel - the value for the inputTel record component
      inputText - the value for the inputText record component
      inputTime - the value for the inputTime record component
      inputUrl - the value for the inputUrl record component
      option - the value for the option record component
      select - the value for the select record component
      textarea - the value for the textarea record component
      trixEditor - the value for the trixEditor record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • inputCheckbox

      @Nullable public @Nullable String inputCheckbox()
      Returns the value of the inputCheckbox record component.
      Returns:
      the value of the inputCheckbox record component
    • inputDate

      @Nullable public @Nullable String inputDate()
      Returns the value of the inputDate record component.
      Returns:
      the value of the inputDate record component
    • inputDateTimeLocal

      @Nullable public @Nullable String inputDateTimeLocal()
      Returns the value of the inputDateTimeLocal record component.
      Returns:
      the value of the inputDateTimeLocal record component
    • inputEmail

      @Nullable public @Nullable String inputEmail()
      Returns the value of the inputEmail record component.
      Returns:
      the value of the inputEmail record component
    • inputHidden

      @Nullable public @Nullable String inputHidden()
      Returns the value of the inputHidden record component.
      Returns:
      the value of the inputHidden record component
    • inputNumber

      @Nullable public @Nullable String inputNumber()
      Returns the value of the inputNumber record component.
      Returns:
      the value of the inputNumber record component
    • inputPassword

      @Nullable public @Nullable String inputPassword()
      Returns the value of the inputPassword record component.
      Returns:
      the value of the inputPassword record component
    • inputRadio

      @Nullable public @Nullable String inputRadio()
      Returns the value of the inputRadio record component.
      Returns:
      the value of the inputRadio record component
    • inputSubmit

      @Nullable public @Nullable String inputSubmit()
      Returns the value of the inputSubmit record component.
      Returns:
      the value of the inputSubmit record component
    • inputTel

      @Nullable public @Nullable String inputTel()
      Returns the value of the inputTel record component.
      Returns:
      the value of the inputTel record component
    • inputText

      @Nullable public @Nullable String inputText()
      Returns the value of the inputText record component.
      Returns:
      the value of the inputText record component
    • inputTime

      @Nullable public @Nullable String inputTime()
      Returns the value of the inputTime record component.
      Returns:
      the value of the inputTime record component
    • inputUrl

      @Nullable public @Nullable String inputUrl()
      Returns the value of the inputUrl record component.
      Returns:
      the value of the inputUrl record component
    • option

      @Nullable public @Nullable String option()
      Returns the value of the option record component.
      Returns:
      the value of the option record component
    • select

      @Nullable public @Nullable String select()
      Returns the value of the select record component.
      Returns:
      the value of the select record component
    • textarea

      @Nullable public @Nullable String textarea()
      Returns the value of the textarea record component.
      Returns:
      the value of the textarea record component
    • trixEditor

      @Nullable public @Nullable String trixEditor()
      Returns the value of the trixEditor record component.
      Returns:
      the value of the trixEditor record component