Class InputFileFormElement.Builder
java.lang.Object
io.micronaut.views.fields.elements.InputFileFormElement.Builder
- Enclosing class:
- InputFileFormElement
Input Text Builder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull InputFileFormElement.Builder
@NonNull InputFileFormElement
build()
/**@NonNull InputFileFormElement.Builder
@NonNull InputFileFormElement.Builder
@NonNull InputFileFormElement.Builder
@NonNull InputFileFormElement.Builder
@NonNull InputFileFormElement.Builder
required
(boolean required)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accept
- Parameters:
accept
- The accept attribute defines the file types the file input should accept.- Returns:
- The Builder
-
required
- Parameters:
required
- If true indicates that the user must specify a value for the input before the owning form can be submitted.- Returns:
- the Builder
-
name
- Parameters:
name
- Name of the form control. Submitted with the form as part of a name/value pair- Returns:
- the Builder
-
id
- Parameters:
id
- It defines an identifier (ID) which must be unique in the whole document- Returns:
- The Builder
-
label
- Parameters:
label
- represents a caption for an item in a user interface- Returns:
- the Builder
-
errors
@NonNull public @NonNull InputFileFormElement.Builder errors(@NonNull @NonNull List<Message> errors) - Parameters:
errors
- Form element validation Errors.- Returns:
- The builder
-
build
/**- Returns:
- Creates a
InputFileFormElement
.
-