Class TrixEditorFormElement.Builder

java.lang.Object
io.micronaut.views.fields.elements.TrixEditorFormElement.Builder
Enclosing class:
TrixEditorFormElement

public static final class TrixEditorFormElement.Builder extends Object
Textarea form builder.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • name

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

      @NonNull public @NonNull TrixEditorFormElement.Builder id(@NonNull @NonNull String id)
      Parameters:
      id - It defines an identifier (ID) which must be unique in the whole document
      Returns:
      The Builder
    • value

      @NonNull public @NonNull TrixEditorFormElement.Builder value(@NonNull @NonNull String value)
      Parameters:
      value - html to be loaded in the editor
      Returns:
      the Builder
    • label

      @NonNull public @NonNull TrixEditorFormElement.Builder label(Message label)
      Parameters:
      label - represents a caption for an item in a user interface
      Returns:
      The Builder
    • errors

      @NonNull public @NonNull TrixEditorFormElement.Builder errors(@NonNull @NonNull List<Message> errors)
      Parameters:
      errors - Form element validation Errors.
      Returns:
      The Builder
    • build

      @NonNull public @NonNull TrixEditorFormElement build()
      Returns:
      Creates a Trix Editor FormElement.